However, in most classrooms it's the teacher doing the asking. "Why are you asking me if you already know the answer?" is a completely valid response. A teacher should try to avoid that and instead ask e.g. "what are you having trouble with?"
With regard to ChatGPT passing tests, IMO the root problem is the overemphasis on tests with these kinds of redundant questions (and constant grading) that have always had limited correlation with learning.