2-3 years ago, Australia's equivalent to the FDA, the TGA, asked for public submissions on rescheduling melatonin to over-the-counter. The sleep specialists put in an objection, arguing that insomnia is a serious medical condition and requires professional care not over-the-counter treatment, and in response to their objection the TGA kept it prescription-only. The real world reality is that people's insomnia often has complex causes (including psychosocial factors) and a sleep specialist isn't necessarily the answer. Our son's paediatrician told us to give him grey market melatonin, he didn't refer him to a sleep specialist.
EDIT: Actually, I learn today they are going to make it available from pharmacists without prescription, but only for people aged over 55 – not going to help us this decade – https://www.tga.gov.au/book-page/13-melatonin