I have heard one mildly rational explanation as to why showrooming and buying online is wrong -- it specifically referred to wasting the employees' valuable time getting help, with the intent to buy online.
Of course, you can still defend that as comparison shopping, plain and simple.

Regardless, bookstores don't suffer that flaw -- the cashiers usually know nothing about books and cannot recommend anything useful.