I would say the teacher was right, in a way. The school is indeed in charge of your son's education, because when you registered your son for school, you put them in charge.

You can delegate authority, but not responsibility, which is why, ultimately, final responsibility and authority still rests with you. If things aren't going right, the school still has to answer to you for it.