I’ve heard the explanation being that it’s a defense against treating dead bodies as alive and spending resources on them at a primal level. Just imagining when we first developed empathy and tried at length to care for those who we lost and evolution needed us to focus on the live ones.