Why are people so mean

Why are people so mean. I went to a funeral today and noticed that a man who was mean to the person who died was very sad then but wasn't when he was still alive it's sad that being dead gives you kindness and respect if you're alive you should still get that :(