That was a good way to teach you commutativity, though.
Well properly understanding why certain number systems work (fractions, negative numbers) requires some understanding of set theory, and the great mathematicians of the past struggled with a lot of these concepts we take for granted (negative numbers, complex numbers). It's unrealistic to expect high school teachers to understand these foundations.
It's this kind of teaching that makes good robots and terrible mathematicians. (Thankfully I'm neither the former not the latter.)