Why would a guy compliment my shorts?

This guy that is kind of a flirt has been flirting with me a bit.. so the other day It was at work and all staff have to wear the same shirts but can wear any bottoms. I wore Jean shorts and he randomly said I like your shorts. What does that mean? Thanks fam.
Why would a guy compliment my shorts?
Post Opinion