Which is ironic if you have seen the video of a guided MLRS round blowing a wannabe sniper off the roof of a apartment building somewhere sandy. Shoulder cam catches the movement, they call it in, barely see the rocket before it explodes on the roof . . . and then you see the body come back down after flying, falling at least 5 or 6 floors.
Our disgust was they had us practicing with tube and all these other units at the time we would not use. So why not the battleship for giggles?
Ever seen a capital round hit something? It's next level in terms of destructive power, that roof, the building and probably the ones on either side of it would be kindling if you used a big gun. They are also expensive as hell and incredibly rare, they are not something you use just for giggles. Not to mention the fact that a massive lumbering battleship is heavily constrained by draft, especially in the sandy areas where navigation is challenging for much smaller ships.
Capital ships are an inviting target, especially when they are just cruising offshore. The proliferation of cheap ASCM coastal batteries, WBIEDs and mines means that your nice shiny battleship can be hit and even if they don't sink it, that millions of dollars in repairs and a massive IW win for the OPFOR.
Use the right tool for the job, and for shore bombardment they right tool is a frigate, destroyer or a cruiser, not a battleship.