Men created the idea of god because they couldn't stand to think themselves so insignificant nor willingly accept ignorance. Even their self-flagellation stemmed from vanity and pride
The indoctrination of children and the general fear mongering keeps many more minds bound by religious constraints