You believe in God or astrology or a purpose in life because you apply ideas about people -- that they have thoughts and intentions -- to the natural world. What has not been clarified is exactly how various cognitive biases interact to produce specific ideas about the supernatural -- until now.
Scientists who study religion have come to agree that belief in God (or gods) relies on our ability, and propensity, to think about the minds of others. This means that if you are autistic and unable to "mentalize," you would be an atheist. New research provides fresh evidence for this claim.