It can certainly seem a bit crazy.
I had a simple fungal infection (jock itch), that I recognised myself and knew what had cured it in the past for me (clotrimazole = Canesten, which I'd bought over the counter). So I didn't need a doctor's help and I didn't need a prescription. However, when I tried to purchase it, the pharmacist told me that he couldn't sell it to me because I'm over 60 and it's not licensed for sale to my age group.
I asked the pharmacist if there was anything else that he could let me have, only to be told "Not without a prescription". So I then had to message my GP online, with an explanation of my problem, in order for him to issue a prescription for an alternative medication.
Thus my situation was exactly the reverse of the one that your friend is now facing. I was happy to pay for an over-the-counter anti-fungal medication but I wasn't allowed to!