I used to be annoyed by this. I’m running GrapheneOS so I denied Google Photos access to the network but it didn’t stop it from asking every few times I started the app. Sometimes it even ignored my response and tried to connect to the network anyway.
I just uninstalled it and installed Fossify Gallery instead from F-droid. Haven’t looked back since.