The problem most retailers face is that competing with Amazon requires substantial, multi-year capex into their supply chains.
The more forward thinking realized that the catch-up bill was only going to get more expensive, as Amazon continued growing and optimizing.
The less forward thinking... well, there's Sears.
As consumers, we rarely see "how" free 2-day shipping, same day delivery, BOPIS, etc. But suffice it to say, it's very expensive to retool legacy supply chains optimized for brick and mortar inventory delivery.
Kudos to Walmart, Target, and Home Depot for seeing what was coming.