You’ve got this all backwards.
OS and hardware developers need software. Their devices are useless without it. It’s why the infamous Ballmer “developers, developers, developers” clip exists.
This is why OS developers and hardware manufacturers invest so heavily in developer tooling. They need to make it easy for developers to make software on the platform, because it is useless without that software. They need developers, and it is in their financial interest to create good tooling for them for this reason, hold conferences to encourage them to make software for their platforms, and so forth. They wouldn’t do any of this if it weren’t critical to their business model.
How do you know this to be true? Because there are many real world examples that show what happens when you don't have developer support for your OS or device. I can make the greatest OS in the world, but if it doesn't have good software support, it will fail. This is a big part of why, for example, Linux on the desktop has always struggled. It's why BeOS failed. It's why Microsoft is struggling to compete with Sony in gaming right now. It's why the Windows Phone failed. And on and on.
Apple is trying to flip the script here. They have a dominant platform, and now want to leverage it to extract greater value for themselves. That’s what businesses do - fair enough. Microsoft did the same thing in the 90s. But I believe that it’s a short sighted strategy which destroys long-term business value. If Apple sufficiently alienates developers they run a real risk of finding themselves in a difficult position where their devices lack critical software in a few years’ time, especially when they are launching an entirely new device (Vision Pro) that desperately needs good native software to succeed.