their software is not great but they literally make the best hardware on the planet right now. you don't get to being a 4 trillion dollar market cap by being trash. they must be doing something right.
It's not great, just everything else is worse. Windows is unbearably broken and loaded with adverts. Linux has been fairly neglected for desktops with few corporate sponsors.
Second-best, according to the stock market. They must be getting something wrong if 4.5 trillion in market cap is sitting around waiting to be eaten. By Apple's arch-enemy, no less.