Usually the ones loudest about the gay thing are in the closet. It's because they feel a certain way when they think about it. Then they feel shame because of their backwards ass religion and overcompensate with a bunch of other in the closet religious nuts.
I actually had a friend sorta like this! He never went gay bashing or anything or he wouldn't be my friend but if anybody asked if he was gay or made any inkling he'd freak tf out! He'd also be super weird and uncomfortable if there was anybody gay around when most of us really didn't give a shit one way or the other. I'm not talking about somebody hitting on him, just "this person is gay" and he'd get all uncomfortable and weird. This was middle school to highschool btw so maturity levels should be taken into account.
Years later he came out as bi. Good on him for working on his inner demons I guess.