I'll break it down into two simple explanations:
The teacher is an idiot. You're allowed to wear any jersey you want to wear.
The kid is a nerd! It's highschool dude, kids will get on you for wearing colors other than black and gold....deal with it.
I dislike both the teacher and the kid, it's easier that way.