Walmart began doing this during the Covid-19 online ordering rush. I used to get everything in one box from a warehouse in Ohio.
I think it's because warehouses are selling out quickly, so they look around for others who might have it. I even have been receiving some things delivered by my local store.
It's not to Walmart's and Sam's advantage to do this.