First, libraries no longer are book storage places. Rather a sampling of the library's contents are displayed and stored there but most of what patrons' want has to be ordered through placing a hold. You can place holds online with your library. It sends you an email when your hold item arrives.
Of course, that only covers actual, physical books, records, movies and so forth and not their digital counterparts. If you want to "take out" a digital item, such as an ebook or audiobook, you can obtain it online and download it onto the overdrive app.
Then there is the inviting physical space. Libraries want you coming into their buildings to enjoy yourselves, not to store huge stacks of books. Increasingly, inviting centers of activity are created, such as children/grandchildren's areas, atria reading rooms and teen centers. This cabin for example is set up in one library so that the children can play while the adult in charge can sit down in a window and relax and read (back and to the left of cabin).
If you need to get away by yourself, one of my libraries has a fire burning in its reading room for adults. You can't get much better than that. Some libraries have even added actual coffee shops right within the library itself or a state of the art coffee machine. Special interest clubs and discussion groups are also offered.