Of course people don't apply the same argument to food, food isn't scarce for most of us and few have problems acquiring it and the ability to produce it can't be easily collected in the hands of a few, anyone can grow their own food.
Anyone cannot operate on themselves and perform some life saving operation, and while those who can certainly deserve to be compensated greatly for that ability they walk a fine moral line knowing their product, or the refusal to provide it, will directly kill people. Doctors are much more like firemen and policeman that businessman. Society has certain expectations of them serving the greater good of the community and helping people when they're in need.
The free market is not the cure for every ill and seeking profit is not, and should not be the goal of every job. Greed is not some inherently good moral trait.