Locking when the app goes inactive (for example going into Control Centre on iOS) locks the gallery. If the user does that often it can start to get annoying when the gallery constantly locks itself. The user should be able to control when the gallery locks itself.