I think men (or people in general) who resort to this are projecting their own insecurities through ad hominem attacks. When you're launching misogynistic/homophobic attacks, I tend to believe some deep issue with one's own self-worth leads you to it. Doesn't justify it by any means, though.