I don't think this has anything to do with autism, ADHD, or neurodivergence.
Intelligent people are curious. That's what makes them intelligent.
IMHO neurodivergent people don't have a trait for "curiousity" -- they're just more intelligent (if their neurodivergence isn't too severe) and so are interested in things. That's why there's so many in technical and engineering fields, mathematics, science -- the really hard stuff (hard for most people.)
Yeah, it's still not easy because there's so much other stuff going on inside the mind, but all that other stuff is going to lead to some pretty cool thoughts that could turn into a paper, project, business, thesis, etc. (if you manage to remember them long enough to write them down!) Over years this builds brain matter and this is where the intelligence comes from (again assuming the neurodivergence isn't severe.)
By "intelligence" I mean the raw ability to process information and gain understanding from it. Not IQ.