Various studies have shown that children are primed to believe in religion. Justin L. Barrett thinks we shouldn't dismiss such beliefs as childish:
[A]dults generally do believe in gods. That such belief begins in childhood and typically endures into adulthood places it in the same class as believing in the permanence of solid objects, the continuity of time, the predictability of natural laws, the fact that causes precede effects, that people have minds, that their mothers love them and numerous others. If believing in gods is being childish in the same respect as holding these sorts of beliefs, then belief in gods is in good company.