Doing stuff to actually help their constituents and angering their donors is hard. Whipping up ignorant people into forgetting about the real issues that affect them while they foam at the mouth over transgender people is easy.
Gotta wonder how much money this sort of performative conservative hate filled politics actually costs the State, Judge, court time, all the mechanisms of the law running at cost. And they legislate these biased laws knowing exactly how illegal they are, just to rally up the base of bigots and blame LGTBQ+ and minorities for the failure of their own corrupt policies.