It can have a secular purpose and have a relationship to God because God was presumed to be both over the state and the church and separation of church and state was never meant to separate God from government.