Lock screens have a chequered security history, with Android having its recent share of problems, too.
The main reason is complexity, one of security’s mortal enemies.
You can understand why some exceptions to a phone lock might be desirable, or even required by the regulators: the ability to call the emergency number, no matter what, for example.