Locking your library prevents someone else on your device from accessing your data. iOS users can unlock with TouchID, or use the library password.