There's several reasons I think why some women engage in this sort of public shaming.
1) They're vain, even though they object to the male attention, they can use it to show a wider audience they are desirable. Most times you see stories like this you see the woman posing looking pretty with a mock angry face.
2) They want to justify their behaviour by seeking the approval of other women.
3) They seek to create a pro-feminist way of thinking. If she can belittle the men in her professional field maybe it can give her more opportunities down the line. The same way you have women being actively promoted to positions of power now in companies to redress the gender balance, their suitability for the role taking a back foot.