Are guys just as fake as girls? Why do guys act different around their friends than when alone seeing a girl?

So this has only happened to me twice with two different men. This guy who I went to high school would always tell his friends how much he hated me. I never talked to this man in my life so I don't understand why he would have such a negative opinion one me. Yet when I would see him alone he would always look at me and smile so then I would just give him a bitch face. He would literally look so many times just so I can look at him. I would just stare him dead in the eyes with a bitch than he would just look upset and look away and stop looking. Then this other time I had my headphones on and it was on pause. It was like a group of 6 random guys from my college. 5 guys said were saying all these good stuff about my looks except one guy. That one guy I would see all the time. He would smile at times and do what I told you the other guy did. I would just give him the same bitch face and then he would pretend like he didn't look and look annoyed.
Are guys just as fake as girls? Why do guys act different around their friends than when alone seeing a girl?
Post Opinion