Yes, but university libraries also do a whole lot more than just manage books. The library at the University I work for has computer labs, GIS labs, a makerspace, 3D printing, electronics fabrication, photography and video studios, plus a hundred other things. All of those take staff.
It is in the context of university libraries. Nowadays these sorts of services are common at bigger schools, and they are managed by the library.
Libraries at universities have always offered more than just buildings full of books. My point is that there is a lot more to managing a serious library than just cataloging books. Trained librarians especially do a lot to directly contribute to research by connecting researchers with the right sources of information.