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.