Why is it unjust? It’s absolutely the store or individual’s choice to charge what they want to who they want, assuming that they aren’t discriminating against a protected class.
In your example, why aren’t all prices then fixed between different stores to ensure justice? Whole Foods shouldn’t be allowed to charge more than Discount Food Bin for the same can of beans, and WF in Oakland shouldn’t charge less than WF in Marin.