Why do schools get mad with what I wear?

Like there literally is no school dress code and I want to feel good so just let me wear what I want. Now I'm stuck wearing my winter jacket over everything because my outfit is innappropriate ffs. At least my friend dressed the same way and we are both in trouble together LOL
Why do schools get mad with what I wear?
Post Opinion