For example, let's say I implemented a CSAM-scanning AI model in my chat app, which runs locally against your message, before communicating the message over an encrypted HTTPS channel. If the message is flagged, it can be sent over an encrypted HTTPS channel to authorities, on a secondary separate connection. At no point, did it leave the device, in unencrypted form.
Is that message encrypted? Yes.
The way that you want? No.
Governments have recognized this distinction, and have figured out they can have their cake and eat it too; the security of encryption with none of the privacy.