I did nothing wrong

I always took him back even after he cheated and messed around with another girl, I still took him back & now that another girl is giving attention he left me, I’m broken, I’m devastated, I never did anything wrong to him. Why is that I’m the one that got hurt at the end? I can feel myself healing but it’s not fair, he’s happy and I’m miserable