To teach is to learn.
~ Japanese Proverb [19084]

Consider also:

You teach what you need most to learn. ~ English Proverb, American [14999]