What of the right to bear arms then?
This is not a governmental restriction, but rather a commercial one.
Nothing prevents a shipping company from saying "In order to take a job on my private ship, you are barred from bringing weapons on-board."
Nothing prevents a country from saying "If your merchant vessel desires access to our ports, it shall not be armed."
The combination of those two (effects, not necessarily codified policies or laws) means that merchant vessels aren't armed.
Naturally, US military vessels, including the Coast Guard, are armed.