Yeah, because as soon as you're taught something you have to go out and get a job based on it. In another time this would have been like querying whether kids should be taught to read and write in primary school...
Unlike reading and writing there is absolutely no evidence supporting to faux claim that children must learn to develop computer programmes. Mark Zuckerburg et. al. are the social parasites.
You could say the same about a lot of subjects though - do children _have_ to understand maths, history, geography, art, music, etc? However, having a broad education is a Good Thing. Furthermore, being able to write simple code can be a massive help in many non-coding jobs.
For example, my wife is a hospital doctor - probably the last thing you'd expect that job to need is coding skills. However, she needs to do audits over records occasionally, and I end up writing simple Python scripts for her to process the data - she has no coding skills, so without me to do that she would be spending hours doing stuff manually that I can write code in minutes to do. She tells me that her IT classes at secondary school were almost entirely taken up by teaching about the health and safety concerns related to using computers, rather than actually learning how to use them. I'm 5 years older (which puts me in the BBC/Acorn era) and my GCSE level IT classes taught me some basics about word processors, databases, etc, but no coding - I learnt to code in my own time. Being _taught_ to code didn't happen until A levels in my case, by which time anyone who isn't planning to have a career in computing or electronics has opted out in favor of other subjects.