It's funny because the man is dying of thirst and his death will have no impact on anything. The death is isolated and pointless, because the man was alone and had no one who cared about him. The funeral services will be shut down, because nobody cares enough to attend the funeral of a man who died of thirst in the desert. The joke is funny because it's a depressing reminder of how pointless life is, and how we all die alone.