Why was this guy jealous?

So we were hanging out with a group of people and this guy kept messaging me and he was getting angry and wanting to read our conversation and making fun of the guy who was messaging me. why would he do this?