Worth noting that your iPhone has been scanning your photos for content, for years now: if I do a search of my photo library for "dog" I get back a list of photos with dogs in them. When I identify a face in a photo with a person's name, I get offered a list of other photos that might be that same person. But I'm pretty sure these results are not sent to Apple: if I do the same searches on my iMac, I get different results. I do use iCloud Photo Library, so there is a mechanism there that could be used to sync, but I don't think they are, I think it's just confined to the device.