Why did he look at me like that?

I noticed my crush in the hallways (we usually never run into each other outside of class). It was so unexpected, it didn't feel real at all. So I turned to look at him from behind when he wasn't looking. An hour later we ran into each other again. This time he was near the corridor, and before I noticed him, he was already staring at me. When I looked at him, he didn't break eye contact and he was intensely staring at me from a distance. It caught me off guard, so I looked down till he left. No, he didn't make any conversation with. But I did follow up with him via text and asked him if it was really him that I saw the other day and he said "yea it was me." Is he really attracted to me or maybe he's just curious?