Password-based key derivation
Your password is not used directly as the AES key. PBKDF2 repeatedly hashes it together with a randomly generated salt to stretch it into a 256-bit key, which makes brute-forcing the password against a stolen ciphertext far more expensive than hashing it once. A new salt is generated for every encryption, so the same password never derives the same key twice.