You have to, depending on the phone, put in your unlock password or PIN, then your Google account login and password.  That's what FRP is - the phone is locked until you put in your Google account login and password.  You can't just unlock anyone's phone by doing a factory reset.