No, it's because those aren't essential services that people need with little option to competitively shop for. People can choose not to get cosmetic surgery, or postpone it significantly, or shop attorney between many different options.
They frequently can't for their health decisions.
Again, it's 'market competition' amidst healthy consumer choice, not 'free markets' that are beneficial for society.
And the healthcare providers make it hard to even see their prices up front. It's like going into a grocery store without price tags. You can't really compare prices.