You aren't supposed to have the hood up in class though because of airpods/earbuds.
But the most common reason that teachers argue against hoods is based on the personal belief that wearing hoods is disrespectful.
Also why wear the hood indoors? You'd look like a creep lol.
It's like wearing sunglasses indoors too.