Didn't have to be that way. At one point they had the gui & mouse when the rest of the world was using paper tape for computer I/O. It's all about vision & execution.
Apple commercialized what Xerox PARC was heading towards. But a decade later they were on the ropes. Doing things right one time doesn't guarantee longevity.