I think another part of it is the idea that if you don't truly hate fags, I mean actively vocally despise them, Jesus will hate you and God will condemn you to hell. After all, God spends all of his time reading the minds of seven billion people 24/7, including you—especially you—so if you're on the wrong side of any issue at any time, then it's later for you.
Sure, some people might think that professional politicians would never believe in that nonsense and that it's all about gaslighting the rubes to get the votes and the power and the money and the sex, and that may be true of some. But remember too that a lot of these state-level legislators are not Washington professional insiders, but instead are small-town people with modest educations and zero political credentials who rode a wave to the state house as MAGA outsiders, so there are a lot of true believers among them.