Why did he stare at me so intensely when I wasn’t looking?

I came late to class and when I walked in and sat down and I looked behind me and there was this guy who was staring at me so intensely and suprised and when I noticed him he looked away quickly he also stares at me a lot

does that mean he’s attracted to me?
Why did he stare at me so intensely when I wasn’t looking?
Post Opinion