Why or why didn't humans invent the afterlife (possibility) as a coping mechanism for life's ups and downs?

I'd like to think so. And that doesn't make it any less true or less false that there could potentially be other realms/other realities, if there ever is a next life or next lives for any soul lol after a long life lived of this mortal realm lol. As unscientific and implausible, sure. Yet, humour the question a little that I pose for thought provoking ๐Ÿ’ฌ๐Ÿค”
Why or why didn't humans invent the afterlife (possibility) as a coping mechanism for life's ups and downs?
Post Opinion