you can always buy a book from the library
You can usually borrow but not buy a book from the library
People can bring the books they bought outside to the library
you need to return the book back sometime after you borrow it from the library