That's called a business. I can't say whether this figure is 100% accurate, but a Tufts University study places R&D costs for a new drug around
2.6 billion dollars (
http://csdd.tufts.edu/news/complete_story/pr_tufts_csdd_2014_cost_study).
Drug companies are evil, but that isn't why. Plus that cost is generally meaningless. Costs are negotiated with insurers anyway.
But the real thing about these drugs is that all of them except Solvadi are
off patent. So the only people paying those prices are people who elect to do so in lieu of generic. If Helmann's mayo suddenly cost $87/jar, would you be outraged? If people really gotta have Helmann's and are willing to pay $87/jar for it, who am I to question their pricing?
Solvadi, well, that's priced differently because they're trying to benefit the developing world and still make money off the drug elsewhere. Controversial, but I think it's on balance admirable given the public health benefit.