Why did he say this?

He was rude to me yesterday but somehow we talked and I noticed he was looking at my student id card and a ring i wear
Today he said hi and how are you and then rushed off.

What does this mean? If he doesn't want to talk to me or doesn't like me then why even say hi? We aren't friends.
Why did he say this?
Add Opinion