Apple has a history of complying with government requests. They opened up NFC stack when UK requested it. Added SMS spam reporting integration with TRAI in India. And all the changes they do for complying with PRC
The spam integration wasn’t done in the way TRAI was pushing Apple to. On Android, the DND (Do Not Disturb) app could get permissions to the call log and SMS, but this wasn’t possible on iOS. Apple pushed back on that requirement for privacy reasons and instead developed a way for the reporting to be done by the user and the information passed to the DND app to compose (not send) an SMS. No compromises were made to grant any permissions. To this day, the SMS permissions doesn’t exist on iOS.