But you can just remove that restriction after you’ve unlocked the iphone? Granted, it’s quite hidden, so nobody might find it.
It suggests that one can use the unlocked stolen device to learn the appleID.
Then follow a series of steps on the device to turn off the screen time passcode by entering the appleID and the device passcode.
Namely "forgot passcode", "enter appleID", "forgot (appleID) password", "enter device passcode".
If correct, then the use of a screen time password can not defeat this attack.