To some degree, the practice of state religion exists to ensure the stability of the state, especially in pre-mass communication times.
To that, so what if the "god" part was a lie?
A stable society built on an unfalsifiable lie is still a stable society.