Why would a guy try to make me jealous?

He saw me talking and flirting with this other guy (on accident) now he flirts with this other girl in front all the time kinda like he wants revenge. What the goal of this where does it lead up to?
Why would a guy try to make me jealous?
Post Opinion