Why is phone asking for passcode when I never set one up?

I have an old 5s that has not been used in abt 7 months. Was planning on using it to listen to music as I have in the past. After charging, it asked for passcode. I have never used passcodes on any of my phones. Can I get in without a code?
Welcome to iMore! If you don't know your passcode you'll have to erase your iPhone and then set it back up.

https://support.apple.com/en-us/HT204306

Original thread: https://forums.imore.com/threads/why-is-phone-asking-for-passcode-when-i-never-set-one-up.379043/