I think it’s unfair hitting the Mac on this front though. Automator is an incredibly easy to use desktop automation tool, and of course you’ve got Bash, Ruby and Python right there just the same as on Linux. They have also invested heavily in work flow automation tooling for iOS.
To me, it really comes down to empowerment of others. If you are not taught how the world works from first principles (in this case the world of computing), then you are forever relegated to live in someone else's world and live within their paradigm of thinking. In this case, the only justification is market capture for these Enterprises, which hasn't materially advanced society and societal issues as far as I can tell.
I mean, Linux specifically isn't really necessary for this. Back in the early-mid 00s, OS X got me into terminal usage and "real" programming via its free (as in beer), full-octane bundled dev tools and included Ruby installation.
In fact, at the point that I got into these things with OS X, I had already tinkered with a Linux variant (Yellow Dog) and had given up before getting too far because I didn't have the knowhow to make the OS as a whole work properly, and worse, the internet resources needed to fill this knowledge gap didn't make themselves obvious.
Yeah, this was over 15 years ago. Yellow Dog was basically Red Hat PowerPC edition, so imagine Red Hat circa 2002.
Things have certainly gotten easier since then though, no question.
I myself didn't really consider how I could use code to speed up mundane tasks until I was forced to copy files over from an embedded Linux system over bash. The introduction from "open up a terminal, and type these commands in, which does these things" to "now just put those commands in a file called script.sh and type ./script.sh, and it will do the thing automatically" was eye-opening, at 22 years old. Looking back, it's the exact same problem that resulted in a company I used to work for doing 100s of GB of data processing in Excel, because writing Excel macros was more accessible than writing a bash script to append two .csv files.
I think a lot of kids would probably really be attracted to it as well. Linux gives you control over your computing environment, in a world where children rarely have any autonomy. I don't think every one of them needs to grow up to be a professional developer, but computer literacy seems like a hugely valuable skill.