Such a ridiculous framing. Of course a teacher needs to provably know their subject, along with a solid practicum and a dollop of teaching theory, because, as with teaching oneself piano, bad teaching habits get engrained easily.
That said, some subjects are more difficult than others to teach, and thus require better education.