Just one of those things... my understanding of the reasoning is it's because melatonin is a hormone. Might be natural but messing with hormones isn't really a great idea over the long term. You've got a science background... you'll probably understand stuff of that nature better than me!
IIRC it's only prescribed to those over 55 & only for short periods of time.