Would it be accurate to say, religion comes from psychosis? The 'prophets' are often alone when 'communing with the Gods'. Being that humans tend to need other humans, wouldn't their loneliness cause them to develop an imaginary-friend? In addition, let's say they came upon a time of extreme-stress. That, coupled with the loneliness, could produce a temporary psychotic-state, which is re-experienced even today, based on the exact same conditions being present.