The primary purpose of schools is not "learning" but exercising power through gatekeeping and accreditation. For most disciplines, the Internet already contains learning resources that make the average school's curriculum look like utter garbage by comparison. We don't use schools for learning, we use them to decide who gets to do what in life.
Why so you believe that is the purpose of schools?
Why does so much learning and research take place if these are not primary purposes of schools?
Why are schools so inefficient at teaching if it's their primary purpose? (E.g. students who've had no schooling can generally do one year of schooling before university, and then in university perform at the same level as people who were schooled for over ten yeras).
Source on that?
Your positions are too confidently severe. For starters, self-directed education isn't effective for most young people. Some form of school need endure, remote or not. If you're going to make more dystopian leaps with AI as an infinite conceptual gap-filler, just remember that people need constructive socialization.
And yet somehow kids go to school and learn stuff. How is that possible?