Once again, Spiderman is confused...
You're grounded because you wore dirty jeans to school (which is questionable in itself, I mean, who cares?)
Or you're grounded because you wore dirty jeans AND you were caught doing IT (two separate acts that are not related to each other)