Medical schools are publicly funded universities, same for many hospitals. Doctors have decent funding by insurers (we have both single payer systems as well as competing ngo/private insurance companies, depending on country). Pharma gets to negotiate pricing with a central body and that's it. Of course big pharma cries all the time but ah well. Better than the US where people die because they can't afford insulin!