My girlfriend suddenly introduced me to someone I didn't know

The other day, my girlfriend went to a friend gathering. She introduced me to someone I didn’t know there. The guy mocked me! I didn’t understand why he would do such a thing. What’s behind this behavior? Seriously, I’m confused.