Earlier quoted context omitted.
> where did this idea that "anyone can learn to code" come from? A better question, perhaps, is why this is assumed to equate to coding-based jobs. Anyone can learn to cook. This shouldn't be equated to everyone being equipped to become a chef de cuisine.
At the same time, just because not everyone is chef de cuisine material, doesn't mean there's no point in their learning to cook. The theme in this comment thread seems to be something like, "Only rockstars should learn to code, it's pointless for normal people".
Perhaps it could be read slightly more charitably? Anyone can learn to code. At the same time, most people should not assume this will automatically lead them into a lucrative career in software engineering.
As you say, it's by no means pointless for normal people to learn. A great many people derive much value and satisfaction from homecooked meals and Excel macros. However, just as basic competency in a home kitchen does not automatically qualify one for a career as a chef, neither does basic competency with a programming language automatically qualify one for a career as a highly compensated software engineer.