That's very clearly not true. In just the last couple of years they have worked very hard to enhance the Mac OS line.
5K displays years before anyone else, even developing custom controller chips.
Wide colour gamut displays on laptops and desktops
Continuity to tie in the Mac and iOS systems.
Integrating a complete hardware subsystem with it's own OS and display in the form of the Touch Bar.
Going just a little further back they introduced the Fusion Drive, a custom flash/disk storage system adapting enterprise style tiered storage in a consumer package.
To support this thesis you'd need to show that other companies have been successfully advancing their platforms with better implemented, better thought out technologies and were thus leaving Apple behind. But where are these advanced features in other desktop and laptop systems that are leaving Apple in the dust? The only thing the PC market has that MacOS doesn't is touch screens which barely anybody actually uses.
Which solution seems to have the most thought and effort put into it, slapping a commodity touch sensor on a PC screen and calling it job done, or the Touch Bar?It's too early to tell how well adopted the touch bar will become, but nobody can accuse Apple of leaving touch interfaces for laptops unaddressed.
I wouldn't say it's unfortunate. The majority of my (and many peoples') personal computing is done entirely on an iPhone and therefore improvement upon it, either incremental or innovative or otherwise, is always welcome.
The masses rarely use professional grade equipment because they don't need them. That's not a reason to stop producing or improving tools for professionals. Sure, the market size smaller, but with these tools the world stops working.
For many of us, Apple computers represent the best tool for our jobs. Sure, we can use Linux or even Windows if forced to, but it will mean a less efficient and enjoyable working experience.
Well, and the majority of my (and many peoples') personal computing is done on something other than a phone. It's unfortunate when people get left behind by a company they like. I think Apple's got the ability to go two directions at once. Giving some love to non-iPhone hardware doesn't mean that they'd have to slack off on the iPhone itself.
In the past, Apple's strength has been their cohesive ecosystem. They seem like they're continually dropping parts of it while letting other parts wither.
Everything else is somewhere distant down their priority list, or not on any list at all, and unfortunately it shows.