I think what makes you a good teacher is mostly a personality trait.
Prior knowledge of the subject is just a cherry on top.