Учить + D is often found in proverbs and "set phrases":
Учить уму-разуму.
Он тебя хорошему не научит.