Could it be that the camera is directly connected to the security chip responsible for things like biometrics, payment, etc. and that unlocking disable it?
Sadly this seems to be the trend of the last few years, that hardware is locked down and you sometimes have to use exploits to have full control over your device