This Pokémon is known as the Bully of the Sea. Any ship entering the waters Sharpedo calls home will be attacked—no exceptions.
How Sharpedo's in-game sprite changed across the main Pokémon games, from its debut in Generation III onward.