How can life be so cruel

How can life be so cruel. You find someone who is so kind, nice and understands  you because they have been through similar things  . But I’m dying what I kick in the teeth. Maybe we would of just been great friends but it’s not fair .