WWhy would someone say I just want attention?

So I decided to wear one of my favorite dresses to school because I like wearing it and some random dude said I just wanted attention even tho I don't I just like wearing what I like wearing

Updates
+1 y
I don't even pay attention to him or any other dudes at all, he's good looking but I don't like him I like his friend from another group so I ignore him and any other guys who are not the guy that I want and I noticed that they all are being weird towards me and a few have a crush on me even though they know that I want someone else.
Updates
+1 y
That someone else being the one friend they are all friends with and are taller than, I don't want any of them i want the guy that I want and they all know that because the guy i want also wants me back but yet they are being weird towards me and keep staring at me and smiling.
WWhy would someone say I just want attention?
Post Opinion