2 guys are in a dessert, 1 is dead and one is alive. The one that is alive's backpack is empty, the one that is dead's backpack is full. How did he die?

**HINT**

The other guy did not kill him.
The other guy is sad about his friend's death.