The solution could be 'showrooming' locations paid for by online vendors that are only accessible to their customers.
It's still a win/win since they won't need to hold stock and multiple vendors can share the same locations. So it will still be a lot cheaper than the current way of doing things.
But you have a valid 'wondering' :p I wonder the same.
The only real alternative for those is buying multiple items and then returning the ones you don't want; I wonder what's the efficiency of one versus the other, in terms of time, money and energy.