Apple didn’t enable facial recognition with a mask during COVID.
At first it didn’t work with a mask, then they changed it so that it went to the passcode screen.
Next they allowed it to unlock if you had a mask on and Apple Watch.
Finally they reworked FaceId to allow unlocking with a mask by making it focus more on the parts of the face it could see, although this was less secure and a compromise for convenience.