It's just that overwhelmingly, when harassment occurs to women, the conversation turns to 'What could she have done differently to make it not happen to her?' and NOT 'What can we do to make it so men don't harass?'
If it didn't happen to so many women, so often, then maybe the conversation could go that way.
But as you say, let's analyze the pattern. What if the pattern is "Go to tech conferences and socialize in a normal and acceptable manner with other people who share my interests"?
What are you going to tell her? Don't go to tech conferences? Don't network with other people in your industry at a bar? Don't talk to a man while drunk? While sober but he is drunk? Don't talk to a man at all? Don't walk down the street at night in a skirt. Don't walk down the street at night at all. Don't leave your house.