Bookstores generally refer to the sales of books, which are of a commercial nature. The shopkeeper needs to make a profit. If everyone comes to read books instead of buying them, opening reading to the public may reduce their income.
The library is a public place that provides reading and learning services for people, and everyone can browse books at will.