Teaching is a lot like (a certain style of) management. You learn what motivates someone, make the connection between that and the subject matter at hand, and make it accessible for them to get to the next level. The rest takes care of itself.

And a good manager understands the difference between obedience out of fear and internal motivation out of interest.