what does it mean?????

so Friday I saw this guy that I use to like when I was like 13 and now I'm 18

I recently confessed to him that I liked him but it didn't go the way I wanted it to

anyway, when I saw him he got close to me and said "you look beautiful today btw"....... ever since I've been going crazy about his compliment

did he compliment me just because or is it something he did because he likes me??

I want to know