Libraries have to replace paperback books after ~20 checkouts on average. (This number is from memory but I'm quite sure it's in this range.) Hardcover books last a bit longer but of course are also more expensive.
I agree the industry would have a hard time surviving off library sales alone, in the same way that most businesses rely on multiple revenue streams to make ends meet, but I think library revenue is much more significant than you're making it out to be!
It's also likely true that a library that bought 10 copies of a book initially is unlikely to buy 10 more copies once there have been 200 circulations and they are needing to be replaced. They may only buy 5 replacement copies since the book is likely to be less popular than at initial release so it will take much longer for the next 100 circulations to occur.
As for anecdota, I have more than once borrowed a library book and then purchased a copy so I could read it again or to finish it if demand is strong enough that I would have to wait weeks or months to be able to borrow it again.