Maybe it’s more work for the OS vendor, but it will likely be more user friendly overall, without any setup… this is the typical trade off and one reason why the year of the Linux desktop always seems 5 years away.
I would suggest that the GNU+Linux command line is not accidentally designed well for agents, it is that agents are purposely designed to use command line. And there are far greater numbers of posts online about how to write a bash script to accomplish something with a command line than there are about similar tasks accomplished in AppleScript. The agents are designed for command lines, and they did not "learn" by using, they just "copy/paste with more steps" from the abundant chatter about the command line tools from the internet.
Maybe someone will write an agent in Java, instead of the sloppy JS that Claude Code is written in. Then you might get a cross-platform java.awt.Robot that can drive the UI. Maybe someone will write one in AppleScript and flex that scripting interface. Maybe someone will build one using a selenium driver for ChromeOS. Who knows.
AppleScript arguably offers a far richer interface for driving applications that have a UI. It's just no one has designed an agent to take advantage of that.