That's the real target.
And you can see it by how they treat the development tools (stuff like this: https://news.ycombinator.com/item?id=25563276 or the many deprecations, for example: https://news.ycombinator.com/item?id=25562604). Or CI/CD setups using their tools.
People like iOS because of the software, both the OS, and the software which runs atop it. This is why WWDC is Apple's single biggest event of the year.
Likewise, people don't buy Macs because they are metal and have a shiny fruit on the backside. Developers were among the first to migrate to Apple back in the 00s when they discovered its Unix underpinnings made it great for doing web development.
This idea that Apple doesn't care about developers doesn't hold water. If they didn't care, they wouldn't have bothered to add Hypervisor support into the M series CPUs. This is a feature which has almost no purpose outside of software development or as a server platform and Apple doesn't make dedicated server hardware so where does that leave us?
Developers fuel their platform. Without developers MacOS and iOS are nothing. Apple knows this.