That will be why the doc tells you it's too expensive, because over the counter is cheap. It's not that they can't afford it, but in the UK there is a standard prescription price. It's under £10 per prescription for any drug that prescribed, but it's a flat fee. So if they prescribe something that costs less than the prescription charge it makes no sense for the patient.
There's a standard perscription price in England, not the UK. in Scotland and Wales there's 0 charges to the patient