Command line tools are composable. They give you superpowers by being able to rally a collection of unrelated programs into working for your benefit. Monolithic GUIs can't do this.
Who said anything about a monolithic GUI? Just compare the UX of a modern programming language and its standard library to that of Unix OS's. By and large they have a unified, more user-friendly style, better tooling, better documentation.