This is an Auto-confirm unlock feature, unlocks your device on the right passcode without you having to press an extra button.
Although, do note that this only works for six-digit passcodes. To toggle on this feature go to “Settings”-> “Security & Privacy” -> “Device unlock” -> Gear Icon > Toggle on “Auto-confirm unlock”.
Note: Available settings and menus may vary depending on device model and software version.