Well, we can speculate all we want as to whether it provides a survival advantage or not - but without the mechanism we're probably not going to get that far.
The other question is whether the NDE experience itself applied selective advantages or whether the processes that contribute to the NDE had selected advantages and the NDE is just one particular practical application of these processes.
The other thing is from a ToE standpoint, we shouldn't be looking at it as a deliberative process. The fact that a trait survived does not imply that it is optimal.
Are you sure about that? Take a look at the Van Lommel study for instance, while more people reported being transformed in the NDE group, there were still plenty in the non-NDE group.
Also: under an NDE is brain related would you not also expect those results? The experience of the NDE - whatever its source- is pretty impactful, especially if it convinces people about the reality of the afterlife, etc. Would we not expect this to have an emotional/psychological impact on the person? Given its intensity?
The question is: does the evidence you are talking about support multiple hypotheses?
I hear all the time that the NDE contradicts our understanding of X, so X can't be involved. That may be true. But I also have to ask myself whether the reverse is also applicable: what does the NDE experience potentially tell us about our understanding of X? Why are we assuming that our understanding of X is complete enough to determine it can cause NDEs? Shouldn't we be exploring in both directions?
Answering this from the bottom up, we SHOULD be exploring whether the ?DE is brain-based or not, except those pursuing the brain-based option appear to have already settled their territory and believe that because they planted their flag on Cuba, Nantucket Island, and South Padre Island, they can accurately map the whole of North America. "We artificially produced the tunnel of light experience in a patient, therefore the entire ?DE is brain-based." "We provoked a large DMT dump in the patient, who believed he was talking to Abraham Lincoln, therefore the entire ?DE is brain-based." "We asked Koko the gorilla if the ?DE was brain-based and she said yes, therefore the entire ?DE is brain-based." On the non-brain-based side though, people are losing their reputations wondering why multiple aspects and aftereffects of the ?DE dont jive with current understanding of neuroscience and medicine, and creating hypotheses and pursuing experiments.
I would not expect the same results from a ?DE that is brain-based than not-brain. In order to chew food, our brain has to control the lips, the tongue, the jaw, respond to all the nerves present, interpret the taste from the saliva, as well as determine how much food to stuff in there. That routine activity requires a fully-functioning brain, with multiple parts of the brain and millions of cells working together. Now, if I get trapped in a raging river, and I'm swallowing water, and no oxygen is coming to my brain, and I'm spending further energy on flailing my arms and thrashing my body, hallelujah! Thanks to evolution, one or more portions of my brain, previously overshadowed by those other more popular lobes because of all that pesky blood and oxygen, having waited years for the right circumstances, finally stands up to the plate, and throws the best personal experience since Cats, only for some joker to rescue me, and that secret combination of neurons and cells and fat loses its self-esteem and becomes Humdrum Brain again.
People have been transformed from a brush with death, whether they had a ?DE or not. But to the same extent? Sure, these folks know what it's like to die, but if all they experienced was a silent void, do they come back with the same long lasting levelof compassion and love like ?DErs?
The other question I have is: how the hell did this trait pass on? We know we run fast because the bears ate the slower cavemen, we make videos of us getting hurt because the bravest cavemen got all the babes, but how did the ?DE emerge in evolution? 100 years ago the common cold could kill you, an ingrown toenail could disable you, and we're supposed to nod in agreement that 10,000 years ago, a number of our ancestors not only were put in situations where they died for a few minutes, but that they came back, they were fully functioning, with memories of this vivid experience, AND all the cavewomen wanted to hit that?