Why does my iphone ask for a passcode when i did not set up one?

I set up my iphone as new, and i did not set up any passcode. When my phone went to standby code, and i wanted to reopen, it asked for a passcode. What should i do?
Welcome to iMore!

Here is a guide on how to recover your lost or forgotten passcode.

Original thread: https://forums.imore.com/threads/why-does-my-iphone-ask-for-a-passcode-when-i-did-not-set-up-one.360662/