Yep! Genetics 101.
I don’t think it is pure genetics. I have a sister and a brother. We were raised in poverty. My sister is solidly middle class, while my brother has not made much of himself. I made it to and through college, taught a few years and went back for and advanced degree (sponging off of my wife).
Anyone can succeed. You have to want to. Some families ( too many, in fact) don’t encourage the value of education.