You've put your finger on it there.
We humans, spend hours on trivia (pub quizes, TV game shows, threads in the playroom forum right here) and it is good memory training for the brain (stops us getting dementia), We also spend the whole of our young lives learning trivia (dates and names of battles, and "important, well to do" historical people, or the names of things, processes, old experiments, texts...) and later in work (the names of more prooesses, machines and commerical products.) And in our spare time we are obsessed with neighbourhood gossip and the finer details of the lives of celebrities or reality TV contestants. It is all a trivial pursuit!
Is any of it important? Is it necessary when a search engine can find it much more quickly (at least, one not compromised by paid adverts)?
What we should be teaching and learning is not facts but skills. Children should still be taught Maths and English, but also be taught how to write, critical thinking, interviewing techniques, finance, randomn sampling and probability. They should be taught to play a musical instrument, and how to draw, paint, and to model in clay. When we get home from work, it is these creative things that enrich our lives. All children should be taught sports, not just those that will make the school team, and more variety. If it can be an Olympic sport then it could be taught in a school. Or else, skills like car-driving, knitting, dressmaking, bricklaying, hedgelaying, horese-riding, birdwatching, carpet-laying... I could go on for pages, but you get my point. There are so many skills that we are supposed to somehow pick up, which would be useful to us in life, but are not formally introduced.
Crucially, while great at high performance trivia, a machine, connected to a search engine, dressed up to appear to be an artifical intelligence, is never going to learn those skills to the proficiency of a human.