There's a lot of neurodiversity in our families. I was the bookish child with a humanties degree, generally well rounded, not brilliant, weak spots in maths (funtional) and PE. DH is mathematical and technically minded, PhD... but actually a "late bloomer" and was seen as the weaker child in his family... it strongly looks like he has dyslexia- I had to turn the garbled ramblings of his PhD into gramatical English before others could proof-read for technical content.
DS1 has diagnoses of dyslexia, dyspraxia and ASD. Great at maths, science, humanities, weak in English, arts, languages. DS2 is more rounded but again loves maths and science. Not as extreme in his strengths and difficulties.
They're in a fortunate position. Despite difficulties with reading, they have a book-loving mum who buys to their interests, reads with and to them and chooses attractive, accessible texts. DH grew up with no culture of reading for pleasure. Environmentally, I can't override their wiring, but I can make optimum conditions to help reading be a positive thing.
My parents were educated in the sink or swim era of the 60s-70s. They sank. DM, didn't realise until recent years that text is not supposed to float around the page... probably undiagnosed dyslexia. She's generally intelligent and technical and could have done far better if she was being educated more recently. My father was a "failiure to thrive" and is probably neurodiverse. Most of my cousins are in one way or another. His parents are/ were very sharp and did well for themselves.
I was brought up in extended family with good access to books, and TV in the 80s/ 90s was great for feeding curious brains.
In DH's family, ASD diagnoses are emerging in the younger generation and looking at the majority of males, I suspect along with a SENCO IL, that being autistic is culturally normal in their family. Mathematical/ engineering minds run strong alongside lots of social/ lifestyle traits.
Regardless of nature there's so many influences. Opportunities, education policy, open/ rigid values, finding mentors. Domestic upbringing is important but interest can be switched on/ off by other influences too.
Having intelligent genes are useful, but it's having opportunities and motivation to do something with them that makes them useful.