When you perform a factory reset the lock will be activated.
To enable the FRP lock the owner must enter their Google ID when setting up the phone. It was introduced as a security measure to protect the sensitive data of the customer. The FRP lock was launched by Google on Android 5.1 and the latest OS versions. It can only be unlocked if you have the correct Google ID and password.
Then, you're in trouble as the device has locked you out. Do you have a pre-owned Android device that is FRP locked and you don't know the Google credentials to unlock it?