What to do when your ex finds someone new

What do you do. Even when its killing you to see it. And even if they treated you bad. It still hurts?? Why??