anything = a choice
Although I know everything, I can only do one thing at a time, so I must choose. = I can do anything. If talking about the past then you must say: "I did everything."
As you can see, you must also say: "I taught him everything." If you are offering a lesson, then you can see: "I can teach you anything (you like)." See the choice here?