Huge chunk of the costs come from the fact that Doctors pay astronomical malpractice insurance rates in some states with no tort reform. Some have to spend more than 100k on insurance - 1/3 of their total pay. Since some states allows multi-million dollar judgments from juries that raises insurance everywhere, which raises not only prices for everyone but also dramatically contributes to more procedures and tests being done at even higher costs to avoid liability. The risks of having your entire livelihood wiped out chases out doctors from those states and reduces availability of care for patients as well. If you want objective cost comparison, compare Veterinary care which has similar consumables and training, but no insurance and liability impact on prices.
The doctor that delivered my middle child said he had to deliver three babies a week just to cover insurance, and he had never had a case against him in his decades of practice.