To be honest a lot of homophobia stems from the fact that majority of straight men find gay sex (specifcially anal sex) gross and scary. Whether that is biological, or just because of society's constructions of masculinity, I don't know.
Basically this. Then they go and find different things to defend their stance (for example, religion) so they look less stupid and immature for acting homophobic and coming after other people for being gay
A lot of these people also subscribe to the "It's okay to be gay but don't do any of that gross gay stuff around me! Don't like shove it in my face!" unless they're using the "Homosexuality = Evil" defense
-Some bitter people just need a group to hate. It can be gays, immigrants, ethnic minorities, just about anyone that deviates from their own.
-Some people are just not educated on the topic and have been told not being straight is wrong and it's easier for them not to challenge that erroneous belief