The mistake is thinking of Google as a library. Google is a commercial product. The equivalent of the Library of Congress would be something more like Wikipedia, or the Internet Archive, or Library Genesis.
I certainly think that we should be spending more resources as a civilization on storing and categorizing human knowledge in a more systematic and not-for-profit way. Expecting a for-profit corporation to do that is just a category error. I'm not saying this in an anti-capitalist sense; I'm in favor of for-profit corporations. People have unrealistic expectations about what they can or should accomplish.