What was his intention?

I sat next to a ‘stranger’ guy in the university in a lecture and during that he started a conversation with me but due to I’m not a morning person I didn’t get that he opened to me so I answered him shortly. In the end of the lesson one of my friends (who sat far from me) came there to me and we talked a bit. During the small talk the guy (who sat next to me) was attentive and after my friend went away this guy also walked away without saying good bye.
When he talked to me he was saying something about the boring lecture.

What was his intention?
Post Opinion