Perhaps because they die young, they are perceived as good since they've had less chance of getting corrupted.
This is gonna sound cheesy but as Harvey Dent says in the Dark Knight, you either die a hero or live long enough to see yourself become the villan.
Besides, not all good people die young. Some live to a ripe old age (e.g. Gandhi, Mother Theresa). And not all "bad" people live long.