They started doing that some five years ago, because of tourism pressure, when Porto started getting more visitors and Lello got listed as an attraction.
Otherwise they would be mobbed by people just wanting to take a picture, and could not run a business. Not that bookstores aren't an endangered species in general ...