Why? It’s Wal-Mart’s store and their products; they want to verify that you aren’t stealing any of their goods.
It is their store. The products that you have purchased however, are NOT their products. Those products are your private property, and not subject to search without warrant.
/johnny