Passwords, while essential in modern computer systems, are actually ancient and have been used to control access to places for a very long time.
Traditionally, a password is made up of a word or string of characters used for authentication or proof of identity.
When users can prove their identity by providing credentials, then they are proven to be who they say that they are and given access to the resource in question. But if the password is not correct, then access is not granted.