I have it too.
For me, it comes from a place of jealousy and insecurity.
I didn’t have a good childhood. I was quite neglected. So I was always very jealous of kids who were well loved and looked after. So I secretly liked it when something bad happened to them.
I stayed that way through my 20s and I probably was a bit unpleasant.
As I grew up and had my own career and family and became happier within myself I found myself having much more compassion for people.
Life previously felt like I was always on the outside looking in. I always felt very different.
Now I realise that everyone has problems, and that the life I have now, I am one of the lucky ones. So I no longer feel jealous and I feel a lot of compassion for people in situations where something goes wrong (or whatever).
My mum had a bad childhood. She then neglected me as a child, so my childhood was bad, but not as bad as hers.
Since her 20s though, my mum has had a good life and is very lucky with the lifestyle she has. HOWEVER, unlike she, she does not see this. She is a very jealous and bitter woman and she is very wary of people and absolutely takes pleasure when unfortunate things happen to them.
I don’t know why I managed to break out of that cycle but she didn’t.
I have young daughters now and they have lovely lives. However, when I see other very well cared for young children I still get a pang of jealousy, as I wasn’t well cared for when I was a little girl.
Other than that, I don’t have those feelings any more.