that is what happens when you are using closed source software (that is iPhones operating system that is mostly closed source), the company (specially when it is located in US) always injects backdoors in their software intentionally and also like always backdoors will exist unintentionally and won't be caught for long times and will be exploited a lot.