why are neurodivergent people so smart?

i’m neurodivergent but i don’t consider myself smart at all, however so many people i know with autism or adhd are extremely smart. i’m talking all aps, 4.0 gpa type smart.