No, this is not on by default. After system install at first boot it asks if you want to help improve search and it describes how your data will be handled, anonymized, etc. If you clicked on yes it is on. There is a choice to opt out.
Both the search and photos settings were on for me in both iOS and MacOs. Completely unacceptable Apple