The books were obviously not wanted by the people who put them there, otherwise they would have kept them.
A single person reading a book they wouldn’t have otherwise is an absolutely miserable ROI for the materials and labor involved. It would be much more efficient to just offer the first person you meet a free book of their choice from Amazon.