I know this in part because I'm a middle-class CS prof whose stuff is all "on the internet". At one point I had the great idea that I don't need to carry around a laptop, since my stuff is all on the internet anyway. I'll just use public libraries, or other university libraries, problem solved. Sometimes it works, but there are obstacles strewn all about. On a side note, it's also made me appreciate physical books in libraries more. If you really did want to learn something and had $0 to spend, and you can find a physical book on the shelf of a public library, you can read it for as long as the library is open, without a card or 15-minute time limit.
[1] https://www.lapl.org/about-lapl/internet-use-policy
(Edit: I realize the original post was going for something more philosophical, and I see they commented in a sibling comment that they're sorry if they came across as tone deaf. I don't mean to pile on! But wanted to point out that just the bare practical aspect can surprisingly difficult even if you know what you're doing.)