This is a scoping issue. On iOS devices at least no app has access to your photo gallery unless they explicitly prompt you for permission.
That said, many apps need access to the photo gallery - say I want to put a screenshot into discord. The issue is that now Discord has access to ALL of my photos.
There needs to be more scoping options. "Allow access to previous 12 photos while you're using the app" kinda deal.