This is flatly untrue - and begs the question, have you ever actually used a library? Or a librarian?
Library science is information science. Librarians are the key to finding new information when you don’t know where to go. Professional librarians are incredible resources that are criminally underused and woefully under-appreciated. Libraries will even order books for you from other libraries, if they don’t have a local copy.
Yes, I've been to a library. When I go, the librarians tend to look up what's available on... the internet. So, prior to the widespread use of the internet, their ability to look up information was severely limited.
You're wondering if I've ever been to a library. I'm wondering if you understand what a monumental shift the internet was.
Because I've never encountered a librarian that just uses 'the internet' to find out what books are available on a subject, they have specific databases at their disposal which are updated versions of the card-file of old, and those databases are not generally accessible to the public