It makes sense since separation of church and state isn't in the constitution. The establishment clause was to avoid the establishment of a federal religion. Many states had their own state religions until the 1800s. The founders did base the idea of Natural rights based on a creator. Most were either deists or christians. It's hard to come to the idea of inalienable rights without believing in a creator.