It wasn't sexist for a man to jump to her defense. Sometimes people defend other people, irrespective of gender. Had it been a woman who'd come to her defense, that too could be criticized. Her department likely has more men. Blame statistics.
Edit: Actually, OP characterizes gesture by the dude defending her as "sexist".(Above opinion stands.)
It sounds like she was rather obviously being white knighted, in a situation where it was clear to her and her coworkers that it was inappropriate. Which then started the problem that her coworkers saw her as favored. (My reading)