Your statement is true. But it also hints at another problem, which is that the default is to price life saving treatments as high as the market will bear. It's a pricing model in line with extortion, the only exception being that the extortionist doesnt have to threaten to kill you - the virus or whatever condition is already making the threat for them.
I was about to summarize by saying "sometimes a free market can mimick evil" but I just remembered it's not a free market at all. These treatments have government granted monopoly status via patents. That's why they are priced so high.