Passwords are hashed (one-way encryption) when stored in a database so if your account data is stolen they don't have your password.
When you enter your password what you enter is hashed and compared to the hash in the database to confirm you entered the correct password.
“Passwords are hashed (one-way encryption)”
Technically,
Passwords are hashed on the server side. They are not encrypted before being sent.