I’ve got the feeling that they’re already doing this on their servers for photos that are uploaded to iCloud (which I believe is pretty standard for services like this). By moving this scan to the devices themselves they can offer end to end encrypted storage without losing the ability to scan for child sex abuse images. Hence, I wouldn’t be surprised if they launch end to end encrypted iCloud storage within the next year.