Early humans, not realizing the scientific (Factual) meanings of thier surroundings, created gods and other fictional things to explain things, and these evolved into organized religions, which because a tool for individuals and nations alike to kill, rape, pilliage, destroy, torture, and conquer.
Thus, humans created god, and used it as an explanation for thier wanton bloodlust.
People are stupid.