In middle school, a special instructor was brought in to teach programming to the GATE kids. She decided she could only handle one student. So out of the entire class, only one kid was exposed to programming in school
When it was time to enter high school, there were two public schools in the area. One had an AP Computer Science class, but the student body was notorious for its high rates of drug abuse. My parents stuck me in the other, which offered no programming classes at all.
In college, I applied to be a CS major, but I was required to choose a second major since CS was impacted. The school admitted me into my second choice of major. Despite pleading my case with the CS department and arguing with the provost after I enrolled, I was unable to switch into the CS major or take CS classes.
I don't mean to whine. I'm sure I had it a lot better than many self-taught programmers. And maybe if I fought harder, I would have gotten in. But the education system did me no favors in learning CS.
And when I see politicians and Silicon Valley billionaire executives lamenting the lack of skilled programmers in the U.S. while doing nothing effective to fix the problem, I have to roll my eyes.