Indeed, the Romance cognates of "library" even usually mean bookstore (or maybe bookshelf...etymologically it's just a thing that does something vaguely related to books). Most languages where a cognate of "library" rather than "bibliotheque" means primarily a lending library (which still might be paid) picked it up as a loan from English.
Many original “libraries” ran on the idea that a book is valuable and rarely new - you’d buy your used copy of Plato, read it, and sell it back for almost what you paid for it. This is infinitesimally different from just renting.