Why do people still talk to their ex's?

I recently broke up with a guy because he wouldn't stop talking to his ex and she constantly 'liked' everything he posts on social media.
I don't keep in contact with any of my ex's.
Why do people still talk to their ex's?
Post Opinion