Passcodes are commonly used as a form of authentication when pairing Bluetooth devices. When two Bluetooth devices attempt to connect with each other for the first time, they must go through a process called "pairing," which establishes a secure connection between them.
During the pairing process, the two devices exchange information to verify their identities and ensure that they are authorized to communicate with each other. One way to do this is by using a passcode or PIN (personal identification number).