We see this with Windows and with MacOS. MacOS's downfall is the more visible one.
The OS is no longer prioritized except where it needs to be somewhat presentable in screenshots. The OS becomes a vehicle to sell company goods. The OS rots to the point that there's no one left at the company with even the most basic competence to create first-party apps for it.
Because the money is elsewhere.
I wonder at which point this neglect makes the OS so unusable that it actively hurts the development of the money-making machines.
Though strangely enough MS would survive this better than Apple.