This is a good question.
As microcolonel states elsewhere in this thread,
The point is that software literacy is becoming more relevant to everyday life. The point of a mathematics class is not to create professional mathematicians, it's to provide the concepts of mathematics to students.
I don't think anyone would disagree. So clearly one reason is that software literacy, computer fluency -- it's all part of life in the 21st century. But why coding, specifically? The cynic in me raises his hand to posit that some of it may simply be a result of an unfortunately wide sense that "computer stuff" all lives in one big bag. And in that big bag we have pervasive entities like Google, Microsoft, Facebook, and Apple. We also have venture capital, flashy IPOs, Bill Gates, your mom telling her friend that you're "good with the computer", the aloof and touchy priesthood of IT guys at the office, the technician who fixed your FiOS, someone who made a million dollars selling an app, your cousin's addiction to Candy Crush, Jesse Eisenberg sparring in his bathrobe over hundreds of millions of dollars, and the cryptic, cinematic, powerful -- albeit unrealistic -- representations of programming everywhere from "24" to "The Matrix".
So there's mystery and money and young people and bootstrapping and sudden shocking success. There's little about the trades, factories, apprenticeship, slogging through an expensive education, missed opportunities, irrevocable career paths, layoffs, or two percent raises.
I think most people know it's not all really that way. But it's a powerful undercurrent. And when the manufacturing jobs evaporate, or the giant bank lays off 10,000 workers, one's gaze can't help but be pulled over to that big bag. Even the President's gaze. Most people don't understand the bag, but part of it -- this coding thing -- well, we've heard that's something a determined person could even pick up on their own. Maybe even at home. And hey, maybe some of those people will be mysteriously, fortuitously successful. Join the information economy. It's a convenient place to lay some hope. It's a pleasing, if specific, answer to the complicated question of what to do with obviated workforce cohorts. We used to have "retraining" and "job counseling". Now we have "learn to code" as well.
I can't say it's a bad thing. Some will find a passion or predilection, and a new direction. It's good, but part of me believes the reasoning behind it is reductive, convenient, and wishful thinking at best.
Edit: clarity, words.
This is the sort of literacy that the masses need. They need to learn algorithmic thinking, and the basics about how to get to an environment on their computer where they can actually get started. They need to know enough programming vocabulary so that they can Google for more information.
Can't say I completely buy this argument. When's the last time President Obama addressed the nation, urging more people to learn to do nursing, or construction? Maybe 'diversity pushes' happen in other industries, but they don't seem to hold a candle to the intensity behind this one. Why, is my question. What's the 'greater good' that everyone sees behind an entire planet of coders? Why not push everyone to be doctors? Push everyone to learn virology? Surely, there's more utility there? Why code?
> People can't know if they're interested until they've tried it. If you're going to let people try coding it seems like a good idea to let them have a good, realistic, example.
I think your comment here is a generic statement, but I still have to mention - it's not completely true. For example, I knew very positively that I was interested in coding, well before I ever wrote a single line of code. I think it's very possible to have genuine interest in an industry, before you've ever worked in it. That said, I suppose I understand the benefit of exposing young people to another career possibility... But again, why coding is being pressured so much as opposed to other industries, I don't understand.