Because it's marketed to parents and governments as "skills for the future" or "necessary for a modern workforce". Yet the "real-life" programming world in its current form is both elitist in attitude and genuinely difficult, and a miniscule percentage of kids will actually write code for work (barring a genuine effort to make it easier, and for businesses, developers and consultants to change their attitude to "amateur code").
Literacy is not vocational: it can be applied in many contexts-everyone uses reading all the time. Arithmetic is also plenty useful.
Or that children should be taught to touch-type so that they are eligible to work as transcribers.
Touch-typing isn't widely taught anymore, is it?