Some earlier versions of Samsung smartphones asked you to enter your password when turning it off from the lock screen. You do not need a password to turn off the Samsung S20 from any screen.