That could be it. I also turn off my iPad when not in use and notice when I turn it on that I have to enter my code. However, like I said above, occasionally I'm asked to sign in with my Apple ID and password. On my Mac though, whenever I purchase or download something from the App Store, I have to sign in with Apple ID and password.

BTW, I do not use 2FA so that could also be the reason.