Even recreational boats do this. Modern ones. Today.
While boats usually add drainage to the deck, and try to minimize the water that gets "inside" (say in the cabin, or the hollow hull of many small motorboats) not all ingress can be avoided.
Combined with the possibility of anything below the waterline being even slightly less than watertight, and it is not a surprise that a bilge pump of some kind is pretty common equipment on most boats with an electrical system.