i’m rather convinced that stuff like ADHD and autism was at least co-opted by evolution (if not outright created by it) because tribes with a certain percentage of it had an advantage.
For example ADHD seems great for foraging, that provides the stimulation that is desired and the ability to completely lose track of time is pretty nice to stave away boredom from trudging through the forest for hours on end;
and autism is pretty obvious in how a defining feature is having special interests that you LOVE doing and get extremely competent in.
I myself have autism and i have no doubt that in a hunter-gatherer tribe i would have been having a blast creating tools and stuff like wicker baskets and trying to improve them as much as i can.