I have, like many folks, often wondered about the evolutionary basis for a belief in gods. Human brains seem to have coded for this rather strongly, overwriting all kinds of higher reasoning and leading to kinds of logic that, while tolerated for god arguments, would never be tolerated for any other kind, e.g. prove god doesn't exist.
Also:
Religion seemed to use up physical and mental resources without an obvious benefit for survival. Why, he wondered, was religion so pervasive, when it was something that seemed so costly from an evolutionary point of view? In short, are we hard-wired to believe in God? And if we are, how and why did that happen?Long article in the NYT, worth a read.