The device in question had no locking enabled of any kind. The associated Apple ID account was locked by Apple without warning, and so the phone itself was locked for any use other than emergency calls.
Wouldn’t face or fingerprint be more likely to be useable when memory issues strike (like they did for the OP)?