Artillery is especially good at repelling enemy fleets from your coasts. If you have railroads, you can roll your arty wherever needed in a second and damage those pesky ironclads that keep trying to destroy your improvements. It doesn't sink them, but the AI always brings them back home when they have less than 50% HP. Gives you breathing time.