I've often heard it said that we, all people, need to believe in something greater than ourselves. A higher power, a god, a creator or some omniscient being.
Look around the world, you'll find social groups, communities, tribes, races each with their own belief system, their own religion, their own god(s). These groups have independently developed, each ending up with a different form of the same concept -a god. It seems that the human condition includes a vacancy for a spiritual leader which must be filled. The French writer Voltaire expressed the same idea with "If God did not exist, it would be necessary to invent him".
That doesn't means to say there has to be a higher power somewhere, to whom we all must answer. Buddhism doesn't require belief in any kind of godhead. I'm always saddened when I see Buddhist writings attributing magical powers to the Buddha, because I suspect these have been created in the mind of the writer or are the product of centuries of story-telling with embellishments.
The natural predisposition to believe in something leads to religion and sometimes (often times?) high priests and social leaders have used that to control their population. Either by creating and implementing a rule-book or moral behaviour based on religious imperatives, or by inciting the suppression of "other" religious groups.
Unfortunately, animals have an inbuilt tendency to fight each other, individually or in groups. That's related to an instinct for survival, and the same is true for the human animal. It's all too easy for leaders to incite populations to war based on religious grouping. I need not give examples, they are all too common in history and in the present day.
It could be comforting to reassure ourselves that our own approach to Buddhism is free from belief in mythical gods, free from being controlled by misguided leaders, that we are treading the path of the middle way, towards freedom from suffering through following the teachings of the historical Buddha.
But what are the chances that 'enlightenment' is just as imaginary as 'Our Father God, creator of the Universe'? That it's just a concept created in our mind by acceptance of the teachings? If nibbana did not exist, it would be necessary to invent it.