Another way to say "a lock is for protecting" is "Some structures are secured by locking them."