Women in the industry are often punished for this.
Of course, the guy could also be punished for the same behavior
The coworker (who was the target) in her story is male. I'm male, and I've had this very problem with male coworkers. (And nothing about this has ever struck me as having anything to do with sex or gender. As it is, most of my coworkers are male, so it's probably more a reflection of that than anything else.)
And to the parent's point of "why not be honest and direct?", at the point at which such things are being written… honesty and directness have been tried, and have already failed. Some people, even told bluntly "Sorry, I need to get some work done." will keep on…