I think it is probably a naval tradition. The general population may not be aware of or sure of this terminology (even whether submarines are either). Ships are generally larger than boats, and I suppose the original submarines were fairly small, even though nowadays they can be much bigger.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.