He nearly kissed me?

So my guy friend and I were hanging out (He likes another girl) and suddenly he pinned me to a wall and he put his face in front of mine with our noses touching. I was too shocked to do anything. Then a guy came and said "ooh, _____ you gonna kiss her?" and then he retreated and said "no, ew". Why did he do that?
He nearly kissed me?
Post Opinion