Automation built into the GUI, with a dedicated language or accessible via the API.
Thousands of third-party utils to tweak the UI, including tons of open-source ones because programmers love Mac for the Unix. Including stuff like Hammerspoon and Alfred, the likes of which Linux users have never seen.
Apple haters are like a broken record.