It could have been worse. A month ago a good friend of mine was transiting from dock to boat late at night, fell and hit his head before entering the water. His body was found 48 hours later. For liveaboards and long term cruisers, I firmly believe statistics will show entering or exiting your boat is the most dangerous part of the boating trip.
The only time I have even been injured aboard was trying to get aboard at low tide, falling into the boat and landing on the stern rail, breaking several ribs. If I had bounced off into the water, swimming and getting out of the water safely would have been difficult.