Maybe our perception of this as positive is cultural? Ancient people might have survived near death experiences, and it shaped our society to the point that we believe being reassured while dying is good. We aren’t angered or frightened by our brains lying to us in this particular situation.