Intelligence has some genetic component but nurture plays a huge role in how that potential is developed.
There’s a book out called “Disrupting Class” which has a chapter in it about how young children learn that is fascinating. Very early childhood social interaction with the parents plays a key role. He provides references to the research done in that area. It was in chapter 6 IIRC.
It’s well worth reading.
I had that book out of the library just recently.