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.
There will be many times when we won't look good-to ourselves or anyone else. We need to stop demanding that we do. It is impossible to get better and look good at the same time.