Of course anyone can be shown how to write a "hello world" application in any language but that doesn't make them a programmer.
We're talking about K-12 education here. The computer science training you give these kids is bound to be somewhat superficial, but it's still valuable. Part of what our education system is trying to offer at that level is a broad range of experiences so that students will be exposed to many things. When the time comes to start specializing in something (i.e. choosing a major in college), they will have a good idea of what subjects they enjoy and have an aptitude for. That's where they'll pick up the math and analytical skills and other foundational stuff. If they're not exposed to coding before then, it's much less likely they'll consider that path.
That's how it worked for me, anyway. I was not a computer hobbyist as a kid, but I had a programming class as a sophomore in high school that was pretty much just fiddling around with QBasic. I enjoyed it, and it came naturally to me. I ended up getting a computer science degree and I'm a working software engineer, a career I'm very happy in. Without that superficial high school coding experience, I don't think it would have crossed my mind to pursue a CS career. I am thankful for it.