What does it mean when a guy looks at my legs?

o.e.. today I was wearing tights and a long shirt so my butt wasn't showing so why was he looking at my legs.. he's my boyfriends friend.. I was walking his way and he was walking my way and I would glance at him a couple of times and see him look down but when he see's me look at him he quickly looks away.. O.o