Our tendency to value dead bodies may or may not be separable from religious thinking. Neanderthals buried their dead 50,000 years ago. This might suggest some sort of primitive animism... or it may be something more related to instinct.
https://news.nationalgeographic.com/news...ls-graves/
https://news.nationalgeographic.com/news...ls-graves/