Guys! Why do you sneak behind your girlfriend's back and text/talk to a girl whom she is insecure of?

Anonymous
I have this guy friend who has a girlfriend. They have kept their relationship a secret but he told me about her. She doesn't know that. We all are in the same class. We are almost 21 22 years of age.
However she asked him to stay away from me when she saw us talking, asked him to unfollow me on social media. I accidently stepped on his foot and she even made a huge drama out of that. She is pretty nice to my face though. He often tells me that they fight a lot, but has never said anything about leaving her.
But i wonder why is the guy still super nice to me, we have hung out a couple or so times without her knowing that. And we text a lot and he is flirtacious with me as well. We are very good friends. Why is he sneaking behind her back? I have started to feel pretty uncomfortable now. I cannot straight away back off and not talk to him at all. I just want to know why is he doing this?
P. s he has a 3 year old relationship and i became his friend only last year.
Guys! Why do you sneak behind your girlfriend's back and text/talk to a girl whom she is insecure of?
2 Opinion