Black men have long been emasculated in America. They were purposely separated from their families during the Trans-Atlantic Slave Trade and today they continue to be separated from their families due to the prison industrial complex. During and post slavery, their genitals were also taken as trophy pieces during and after lynchings. This was done to cease reproduction, prevent sex with white women, for entertainment and it was also a warning sign to keep other black men in check.
This has lead to defensiveness and insecurity about their mansculinity that has lead to the homophobia and sexism. Huey Newton said "We want to hit a homosexual in the mouth because we are afraid that we might be homosexual; and we want to hit the women or shut her up because we are afraid that she might castrate us, or take the nuts that we might not have to start with."
Similarly, the trope of the nerdy male juxtaposed against the letter-wearing jock is one that hurt many in the hacker community. The narrative is that these men are unattractive or desirable partners unless their skills make them wealthy. In that cultural climate, the emasculated nerd is encouraged to see women either as targets of resentment, or as trophies.