This is a "security feature" - if you type your password incorrectly three times then login will be locked.
You can use the command faillock
to see how many incorrect attempts have been made (and when) and you can clear these failed attempts with faillock --reset
. Rebooting the PC has the same effect.