What would make my mac lock
This is typical of a keychain error or issue or just an inconsistency in caching of auth tokens that indicate the grace period to not ask for a password after you log in once.
Causes can be system keychain, user keychain, login keychain, time and date inconsistencies, system corruption.
You’ll need to isolate and troubleshoot these one by one if entering the passwords becomes troublesome.