In a healthy society--at least, a healthy society that is also as wealthy as ours--the solution would be to recognize medical research as a clear public good, and reallocate some of our society's wealth to fully fund both research and production of medicines.
What we have instead is...well, we have a lot of different factors interacting. But just to name a few: we have a government that has convinced us that propping up the military-industrial complex is the most important possible use for billions of dollars, and we have private wealth concentrated in a small number of people who will fight like mother tigers against any attempt to appropriate the smallest amount of their money for the public good.
But that's all complicated and unpleasant to think about. So...hey, cancer research is expensive.