The politicians wanted power, and the voters they courted want their agenda, which is religious in nature, enacted.
And the latter got their wish, because guess what, they won’t keep voting if the politicians don’t answer to their agenda. That’s why creationism is taught in their school, that’s why abortion/contraception is limited/banned, that’s why LGBTQ+ people are shunned and prosecuted, that’s why a party once populated with largely socially liberal, urban, highly educated voters now based their electoral success on everything that is anathema to those.
Or, maybe, the most politically active voting bloc in the country is just doing it for shits and giggles, who knows.