> The creatives [...] “Lern to code!”
No, the underlying format of "$LABOR_ISSUE can be solved by $CHANGE_JOB" comes from a place of politics, where a politician is trying to suggest they have a plan to somehow tackle a painful problem among their constituents, and that therefore they should be (re-)elected.
Then the politicians piled onto "coal-miners can learn to code" etc. because it was uniquely attractive, since:
1. No big capital expenditures, so they don't need to promise/explain how a new factory will get built.
2. The potential for remote work means constituents wouldn't need to sell their homes or move.
3. Participants wouldn't require multiple years of expensive formal schooling.
4. It had some "more money than you make now" appeal.