From an anthropological and sociological perspective, the theology of god made its presence known directly from one source.
Imagination.
Man has used it to his heart's desire since the dawn of time, and people often confuse it with reality.
I know where you're coming from, but our experience of reality is all internal. Our mind, or brain rather, mimics, copies, mirrors what it experience of the world, so in a sense what we consider to be "reality" is only subjective and "imagined" by our brain.
The first man obviously wondered from whence he had come, because we ask that of ourselves even today. From an anthropological and sociological perspective, we can understand that early man used his imagination to connect the world around him to that which he did not understand. An invisible air current moves things around; it must be a god. Today, we know it as wind. Yet, in every culture, there's a god of the winds. For obvious reasons. Men tend to attribute what they don't understand to that which is supernatural.
God is for many the explanation for the things that we still haven't really figured out, like what existed before big bang, is God a form of entity living in a multiverse, where does consciousness and awareness come from if matter isn't, and so on. So yeah, God is the imagined "thing" that somehow is supposed to explain those things that we don't understand, but it doesn't make those thing unreal.
And for some people God is more about an experience than a physical object or thing, like anger, love, desire, hunger, etc,
Christians: Yeah, god sent a hurricane to blow down your house because you're gay.
That's the Christian attribution of god to the winds. (Didn't want Christians thinking, "wait, we only believe in one god, and he's not a wind god")
Yet another way people have come up with explanations for the world and reality, things they don't understand. Chaos and chance can seem directed at times, so God is that thing that we try to understand.
With science, and literacy, god still remains non-existent. Yet, the unchanging religions keep changing their arguments to better suit defending that which cannot defend itself? Yes, apologists are not good at what they do.
Well, if a person call randomness God, then randomness still exists, so it's rather the concept of calling it God that's an issue. Same for if someone call whatever exists beyond or above the quantum level God, it doesn't undo that there is something beyond Higgs Bosons but only that there's a problem calling it God.
In the end, imagination is its own downfall in religious matters when facing reality.
Imagination is one of humanities strongest abilities, it's our superpowers, but also a curse. We just need to use it wisely.