As far as I'm aware, the only people pretending books are libraries' only real purpose are the people here arguing that the Internet should take their place. Libraries themselves certainly aren't pretending to be only about books; they're just physically built around the stacks because books take up so much more space than the other things they provide.
That said, access to books is still a vital service. Not all printed publications are cheap, and not all books can be replaced by Wikipedia (even if you completely ignore fiction, as that argument does by necessity).