Before Air travel became the norm, people used to travel by water, and unless you know how to swim, you may drown for whatever reason.
The educational institutions didn't want all that effort wasted so they started requiring swimming education for people.
Or something like that, don't quote me haha