I've lately seen folks on here say they've felt guilty for getting books (mine and other authors) from the library, or people insinuating some authors might be against libraries. This is nonsense, and here's a thread on how using your local library supports authors.
It's easy to see why people would think, at first glance, that getting books from the library is depriving a writer of their dues. It's free, after all! You're not paying anything, so how would the author be getting paid anything for your reading? This is a misconception.
While it IS true that, in the US, authors are not directly paid each time someone checks out a book, they DO benefit, in multiple concrete ways.
The first, and most direct, being that libraries and library systems BUY the books for their collection. If a book looks to be popular, they buy in bulk! If a book *becomes* popular (i.e. lots of people checking it out), they will continue to buy more copies of that book.
If the library subscribes to a curation service (like the Junior Library Guild), a book is bought for a library system in large quantities before the book is even released. This is a big deal, especially for new and unknown authors (it's why we get excited when we're JLG picks)