I’ve maintained weapons in a salt water environment for decades, and hitting a skiff full of pirates is certainly easier than shooting down a flying duck.
We need to be practical here. The boat owners are not going to pay for guards on board and the sailors are not competent to handle and maintain weapons.