Wonderment about origins is ancient. Most religions have a Book Of Genesis. In essence, all religions hold – without explicitly saying so – that before Cosmic Birth there was a serene Void: An insubstantial Nothingness, meaninglessly majestic by any measure, perhaps a mere dot or a three-dimensional stretch that might have seemed an enormous waste to a thinking observer.
Many centuries ago, one philosopher in India surmised that perhaps the Divine was getting bored by this inert static Void , and wanted to have a Cosmic Play. So the Divine created the heavens and humans, globes and galaxies, and all that is in the physical world. Our earth is but a sliver of matter in this vast expanse
We humans are endowed with a fantastic mind that can create thoughts with meaning and picture. We can imagine and fantasize, count and conceptualize. We have (figuratively speaking) a heart that can love and hate, care and be callous. We can be good, and we can be bad.
Most of all, we can experience the world; not only to rejoice in its beauty, revel in smell and touch and relish delicacies, but also exclaim with awe at the wonder of the waterfall and the splendor of the skies.
Unless we are ungracious morons we tend to feel a sense of gratitude for this. So it was that the wise and the sensitive, even the ordinary among us, came up with ways of expressing our gratitude to an Unseen, Unknown, and Unfathomable entity that we designate as Almighty Divinity or by some other awe-inspiring epithet.