Spanish, French, Italian, and plenty of other European languages have a word that looks and sounds similar to English "library", but in those languages it means what we would refer to as a "bookstore", not what we call a library.
For some reason through language evolution "library" in English got the meaning it did which is not shared with other languages with a similar sounding word.