More specifically, teaching is a different skill than knowing. Excellent math teachers are very different than math majors - in some ways it’s less complex (eg pushing the boundaries of the field of mathematics), and in others it is far more (understanding the human psyche and how to effectively communicate abstract concepts).