It' because you were embarrassed, frustrated, bitter, and jealous. If there's a time when those ill feelings surfaced, then there's also going to be a time where you restrained yourself, smiled, and then cut your relationships afterwards.
Being aware of your eventual break up was a rather complicated thing. If you wanted to graduate with a smile, shouldn't you avoid approaching your friends too much? And that's where having no friends was super convenient!