In the United States, Libraries usually participate in a program called ILL (Inter-Library Loan). You can request the book be sent to your nearest branch and they’ll find a library that has it in stock. Just look up “[Your library name] interlibrary loan” in your preferred search engine
UK as an adult you often have to pay for this per request and there is a limit on the number you can request at once. As it can take weeks or even months to complete while you wait for your turn in the queue so it makes it very hard to stack requests.
As a kid I used to love this service as it was free without real request linits and a lot faster. I could just pre order books that hadn’t come out.
I stopped using my local library because of it as their planned fiction book selection is basically large print romance or war stories or westerns.