Yes, but they only sell it at high prices becuase people pay for it. When cars were not selling they had to do 0% financing otherwise people would not buy them. That is a great thing about our market. If a cell phone was a $1k, not many would buy them or the service so they drive it down.
The drugs are a different story that most people don't understand. They file patents on the drugs when they get to Phase II or Phase III clinical trials. They have 17 years I think on the patent and it will usually take another 4-8 years to get FDA approval. Some drugs fail at the latest stages and are doomed and those are extra costs that other drugs must carry.
If there is no reward for the drug companies, there would be no new drugs. If you think it is overpriced, just don't buy it.