It’s a free market because buying an iPhone is a choice. It happens to be an incredible product, so may not feel like a choice, but the experience was designed by one company and put into the market as an offering.
Apple has no control over your bank account and you have no control over Apple. You are both free to engage with each other or not.