Simply because the GUI is an applications sitting over the OS and needs to
be fed in via other code to interpret them while the Command Line feeds direct into the OS, often the kernel - thus a Command line command can work even when the GUI isn't working right or there are memory issues and the GUI can't be opened.