The classification of Ship vs Boat has to deal with the manner in which it handles a turn.

As you can see from the above picture a ship will lean to the outside of the turn when changing directions.

A boat leans into the inside of the turn when changing directions.
When a submarine makes a turn, it leans to the inside of the turn thus giving it the classification of a boat and not a ship.
