I think you are conflating security with privacy.
While I won't go so far as to claim that Apple's software is 100% secure, I think that most can agree that Apple has done a respectable job overall with iOS in particular and that it is far better than the vast majority of commercial OSes. Yes, there have been problems, but that’s to be expected. It’s not at all accurate to say or imply that iOS (or macOS) are any less secure than any other widely used operating systems.
That’s not to say Apple can’t or shouldn’t improve. Security is a constant game of whack-a-mole at the end of the day. They can and they should. But OSes are hard. Everyone knows this.
When it comes to privacy, however, I feel there is no contest. Apple does care more about user privacy moreso than other commercial OS providers and absolutely does more to protect and respect the privacy of its users. Sure, mistakes are absolutely made (as in the recent Siri fiasco), but as a whole, I find that Apple goes out of its way to protect users’ privacy even when it slows progress on software (again, see Siri). It’s easy to argue that this is easy for Apple since hardware is their main business, but who cares? The end result is the same. Increased respect for user privacy.
Security and privacy, while linked, are not the same. What happened was a security issue that was fixed in February (as of iOS 12.1.4), soon after Apple was made aware of it. What exactly are we arguing about again?