Are you sure the photos themselves aren’t encrypted when uploading? I think only the iCloud backup has the decryption keys.
Regardless, it’s way different building a system that has online access to decryption keys with the requirement to scan every photo uploaded versus reserving that access to more locked down servers that have the decryption keys and are only accessed during law enforcement actions.