How do theocracies get their power?

By the will of God, Rising through the ranks of that religion.