Hi andy
I agree with you. My take on that is that there is something in-built to the human psyche to believe in something outside oneself. I seem to remember there is a genetic component to belief:
https://www.newscientist.com/article/dn7147-genes-contribute-to-religious-inclination/
To my mind, this tendency permits the development of prophets or priests who set themselves up to interpret the signs "sent to them" by the deity. People are only too willing to believe the prophet who appears to explain some of the mysteries that perplex them.
As the priest-class develops, they set up rituals, build places of gathering that eventually become places of worship.
The priest-class starts to realise it has political power, and the priest-class then becomes corrupted by their ability to manipulate people.
Eventually, the religion becomes more about the rituals and political power than it is about the 'true' beliefs that were established at the beginning of the process.
I think it was Karl Marx who said religion is the opium of the people. I interpret that as saying religion can be used to keep people quiet and under control.
Thus, powerful religions and political ambitions go hand-in-hand. We see it all the time: during the Inquisition; in the time of the Borgias in Venice; in the US today as well as with ISIS/Daesh.
In these and other cases the ancient message of the religion, founded on peace, love, forgiveness and tolerance is corrupted to become hatred, intolerance and death.
So there is a natural alliance between politically-ambitious priests and political leaders, that is often expressed through corrupted religious teachings. The devotees of these empty, corrupted priests are encouraged to act in ways that further the political ends of their politically-ambitious leaders.
I'm not saying this applies to all religions. Just that when the priest-class has a political agenda, and favours unquestioned doctrine over open debate, then we should be especially careful to challenge their message.