The belief that death is not the end would have had a profound effect on peoples' willingness to take chances, so I suppose evolution could have selected for a tendency for near-death hallucinations as a facilitator of riskier (and potentially more highly rewarded) behavior.
The neat thing about evolution is that whatever happens can be cited as evidence it's true. ;^)