Markets have inefficiencies and reflect collective human irrationality (such as underestimating the likelihood you will be in a fatal car crash). But it is trending better - not
especially in a modern market. The stuff the FDA prevented when it was first created is much worse than what it has to deal with today because of better information dissemination and a broadly educated population.
I'm not sure who else would be funding pharma research if not people who are giving their money willingly.