The issue is especially unfortunate when applied to the NHS. Despite what the Americans think the NHS is the finest idea in medical provision in the world - treatment is free at the point of use. But that means very high demand - wants are infinite and free is the price that gets that level of demand. But the budget of the NHS is limited by what the government can afford.
Therefore not all treatments can be afforded by the NHS and they have to make a choice about which to provide.
The article below tells of the provision of a cancer treatment for children. At £210,000 its just too much to be given to everyone. Of course this is a value judgement, but an excellent of scarcity, choice and opportunity cost.