Oh, that's easy. I have an IQ of 134. I'm very slightly autistic and have a moderate obsession with shapes and patterns but not enough to interfere with my daily life. I absolutely cannot look at a tile bathroom wall without finding shapes and patterns and triangles and angles and symmetry between them though. So when I sit down to design the logical flow of a program, my subconscious already completed the work, I just type it. Like when I wrote a car rental program in college, I read the requirements and immediately drew out exactly what the flow of information between the modules would have to look like to meet the needs. Everyone asked how I solved it that quickly and I had no idea why they didn't because it seemed obvious to me.
My college and high school programming teachers did a good job telling me how programming and variables and memory and instructions ACTUALLY worked and that's what makes me a good programmer. My brain's natural abilities filled in the rest. Like do this but don't do that because garbage collection won't reach it and that's double the size of memory you'd need anyway for that data. That's not a learned ability, it's common sense if you know how programming actually works. So you don't need to "learn" how to not write crappy code in most cases.