We humans are prone to a bias called "attributional bias". It's one of the key factors in the double standards that are pervasive in human society.
If something good happens to us or one of our friends, then they deserved it. If something bad happens, then they're unlucky.
On the other hand, if something good happens to a stranger or someone we don't like, then they were just lucky, or even cheated, whereas is something bad happens to them, then they probably did something to deserve it.