It's because this is a law in Texas:
"The Texas Constitution
Article 1 - BILL OF RIGHTS
Section 4 - RELIGIOUS TESTS
No religious test shall ever be required as a qualification to any office, or public trust, in this State; nor shall any one be excluded from holding office on account of his religious sentiments, provided he acknowledge the existence of a Supreme Being."