Betty unlocks the padlock on her locker and opens it. She then locks the padlock inside the locker door while still open, then shuts the locker door with the padlock still hanging there. You can't shut a locker door with a padlock still hanging in it; you have to remove the lock, then replace it completely and lock it while shut.