If you’re not willing to pay for the product, you’ll leave and maybe come back when there’s a sale or a cheaper version. If you’re willing to pay for the product, then your utility is met and you’re none the wiser about your friend getting a cheaper price. It’s perfect pricing and harmony in the free market.