Apple clearly said they scan the photos on your phone not in your cloud account. They say it is designed to work with iCloud photos and they are processed / scanned on your photo before they are uploaded to the cloud.
Not sure why they would need to do that. It does open up your phone for scanning and uses beyond what they initially layout.