Death is not an equalizer. Just because the beggar dies just the same as the rich man, that death doesn't undo any of the beggar's suffering nor any of the rich man's gluttony. There most likely is no afterlife in which those who have suffered are rewarded and those who inflicted suffering punished.