Much of the cost comes in the form of 'defensive medicine'. My doctor explained it this way:
A lady comes in with a headache, convinced she needs a MRI. Instead of telling her to take 2 aspirin and evaluate in the morning; he prescribes her the MRI, just in case. And with our fee-for-service payment model, he gets paid for ordering the test; and prevents a possible malpractice lawsuit.