I don’t believe that is sexist...I recall that may be standard sound advice in diving circles, though I could be wrong.
That advice is also for women who hike, especially in known bear areas.