Sometimes the online store operating under the same name as the brick and mortar store is not the same company.
Not sure if that is true for
Walmart.
I know in the past, not sure if true now, Target was an example. Target online was not the same as Target in store.
Even when they are the same company but different divisions it can be strange.
I agree it is stupid though. I too would have just returned the items and bought elsewhere.