Do you have Google Pay or some other tap-to-pay set up? If so, that requires some kind of screen lock, and it might not let you delete it. Or, if the phone is set up for work, there may be a security policy installed on the phone that requires a screen lock.