Why do men get jealous?

I was video communicating a friends with benefits while another guy was in the elevator started a conversation with me. Of course he hear everything but we end the call due to me and the other guy talking for too long and when I called back he immediately said i fucked him.
Why do men get jealous?
Post Opinion