Why would a guy always says hi to me every time he sees?

He always says hi to me whenever he sees me in the hallway, even when he is talking with his friends. He also tried to talk with me about school once in the cafeteria. Is he trying to be my friend?
Why would a guy always says hi to me every time he sees?
Post Opinion