Apple can do it (create a security focused phone), it just isn't anywhere near what they want to do. The instant security (or privacy for that matter) gets in the way of profit for Apple they will back away.
Apple is actually not in the business of selling the data of their users. They will also risk aggravating large players in favor of improved privacy. A recent example: App Tracking Transparency [1] which makes tracking an opt-in feature to be requested from the user. To no one's surprise users are happily declining when made this offer. Companies like Facebook aren't too happy about it. [2]
Privacy and security are related, but distinct. Apple has been pushing privacy, but we're talking about security here. Typically the tradeoffs around increasing security have to do with user experience, something Apple typically does not like to compromise on.
Well, keeping things private certainly rests on the security of devices and protocols. That being said, Apple investing heavily in making security unobtrusive isn't in itself a sign of weak security. A lot of it is just well engineered and thus unseen. But documented in parts for everyone to see: https://manuals.info.apple.com/MANUALS/1000/MA1902/en_US/app...
If I somehow made it seem as I thought Apple sell data then that wasn't my intent (but neither does Facebook or Google sell their data).
However I do believe that Apple is only doing what you describe as a PR move. At the same time Apple fight other's advertising and tracking they are strengthening their own version of this. That users get something good out of it is strictly a side-effect. Promoting Apple because of this is in my opinion worse than promoting Facebook for their behaviour as they don't try to sell it as "protecting their users" as far as I know. Using an Apple phone is likely better than one Facebook had its hands on but the thinking and ethics behind is worse in an Apple product as they are successfully being extremely disingenuous towards their users about protecting their privacy.
Or maybe it's because they're doing their best to make every iPhone the security-focused phone, while not doing anything that would anger the FBI enough to try to pass legislation. When you are that big of a company, the things you can get away with are much more restricted than a small company.
[1] https://www.apple.com/newsroom/2021/01/data-privacy-day-at-a...
[2] https://www.inc.com/jason-aten/apples-privacy-update-is-turn...