If I'm poking through something I maybe want but might get in person, and I find something I've already bought that fits my need again... I'm more likely to buy again than to wander over to a physical store. Especially true for things I don't buy often and then need suddenly, like casual clothing (oops, ripped it) or random felt pads for furniture (oh dear, that's going to scratch things up quick).
I'm also less likely to hem and haw about it until I just buy from a physical store. (For example, "these paper towels or those? idk, decide tomorrow" and then buy with groceries the next day.)
Besides, if you rebuy, then return, that's worse for them than if you just never rebought. Sure, they'll probably charge you a restock fee, but I'm not entirely convinced it covers the full cost to Amazon.
That makes me way more likely to just buy from Amazon, even if another merchant is slightly cheaper.