This prevents accidentally leaving the padlock unlocked, and it also prevents accidentally locking the key inside a locker, shed, etc.
This avoids unintentionally leaving the padlock unsecured, and it also prevents accidentally locking the key inside a locker, shed, or similar location.