TLDR: Some companies have toxic culture, pay attention to red flags, read contracts carefully, speak out so things can change.
(Worth a full read if you've got the time. Some scary places out there.)
How is this sexism? It's extremely inappropriate and it's a shameful behavior, but the definition of sexism is not "anything that makes a female uncomfortable".