The premise you're assuming only holds if socioeconomics is constant. Imagine being the child of two software engineers living in a house in the suburbs with your own room and computer. Now imagine being the child of a single mother who works two minimum wage jobs and lives in a cramped apartment in the projects.
If the latter child doesn't end up spending as much time programming as the former child, how much of it do you think was choice?