Why does the child want to know if the teacher ‘ever made mistakes’?
When the teacher teaches in class, he/she knows everything, in fact he/she corrects the children if they commit mistakes. The child therefore imagines if the all knowing teacher has ever made any mistakes.