They know how much to charge you at the till, therefore they know what price to put on the label. It is that simple.
For webstores, require customer to disclose location so the right price can be computed; they have to do that when it comes to the billing page so it isn't novel work.
Everything else is bullshit reasoning to get away with false pricing/false advertising.