Why does my ex get jealous when I am flirting with another guys?

when I am flirting with some guys! he looks at me angrily... and he told that he is glad that I fell in love! ! I don't understand why he got angry then wish me good luck with my future relationship!
Why does my ex get jealous when I am flirting with another guys?
Post Opinion