Near-Death Experiences May Stem from the Brain Blending Waking and Dreaming States, Study Suggests

Although the exact cause of these experiences remains a mystery, the authors say the phenomenon may be tied to certain sleep abnormalities.

Source: https://www.livescience.com/65838-near-death-experiences-rem-sleep.html