This was in my high school and early college years, later on in life I was able develop romantic relationships with them and healthy platonic relationships. I’ll be upfront and say a lot of the times if a straight dude hates women vehemently, it’s probably because he’s not getting laid or able to form any semblance of a romance with a woman.
Fear (of rejection) and resentment (of someone not appreciating you like you appreciate yourself) are emotions a lot of people have at some point, and in some people that can fester into hate. It's probably more common in people who have a higher opinion of themselves (whether that opinion is justified or not).