When you are in any type of boat that is moving and you select eject, your character will fall out of the boat and enter a ragdoll descent to the bottom of the ocean, without responding to any player inputs until you restart the mission.
It only works when the boat is moving. When still, you eject and swim just fine.