Password verification commonly relies on cryptographic hashes. Hashing refers to the process of running the password through one or more processes to create a unique value (hash) for that password. WordPress never saves the password, only the hash.
Storing all user passwords as cleartext can result in a massive security breach if the password file is compromised. One way to reduce this danger is to only store the hash digest of each password. To authenticate a user, the password presented by the user is hashed and compared with the stored hash. A password reset method is required when password hashing is performed; original passwords cannot be recalculated or retrieved from the stored hash value.
A password hash also requires the use of a large random, non-secret salt value which can be stored with the password hash. The salt is hashed with the password, altering the password hash mapping for each password, thereby making it infeasible for an adversary to store tables of precomputed hash values to which the password hash digest can be compared or to test a large number of purloined hash values in parallel.
Rather than store plain user passwords, controlled access systems (such as WordPress) frequently store the hash of each user’s password in a file or database rather than the actual password. When someone requests access, the password they submit is hashed and compared with the stored value. If the database is stolen (an all too frequent occurrence), the thief will only have the hash values, not the actual passwords.
Passwords can sometimes still be retrieved by an attacker from the hashes, because most people choose passwords in predictable ways. Lists of common passwords are widely circulated and many passwords are short enough that even all possible combinations may be tested if calculation of the hash does not take too much time.
A number of the vulnerability reports you’ll read on this site refer to plugins or themes which allow attackers to bypass the hashing security measures.
Source: https://en.wikipedia.org/wiki/Cryptographic_hash_function and https://en.wikipedia.org/wiki/Key_derivation_function#Password_hashing