You never know what kind of role you play in someone's life. Maybe they just used you to get over their ex, or they used you to have fun outside their relationstip. Maybe they Waits their whole life to meet someone like you, or it happened by the accident and you were so perfect and they got terrified. People are selfish and they do what's best for them, so don't take it too personal.