Public libraries are immoral? Fortunately, very few people subscribe to Libertarian theology.
Taking money from someone (at gunpoint if necessary) and giving it to someone else to whom it does not belong is immoral.
Forunately, most people know that, they just don't make the connection to the library. And fortunately most people don't subscribe to the theology of theft.
Just keep telling yourself that