When you perform a factory reset on your smartphone and didn't check in with your Google account before, the PIN or pattern screen lock will be removed.