Walmart has stores in almost every city in North America. When they go to same-day delivery, they don't have to build warehouses across North America like Amazon has to do. It is so much cheaper for Walmart to use existing stores as distribution centers.