You don't know Windows 11 as well as you think you do. I reveal all the strange, brilliant, and downright surprising features you've probably missed in the Settings app.
There is some dynamic feature for that, I think. If it didn't really go to sleep mode then it won't make you login again unless the dynamic lock feature is triggered. The screensaver settings are kind ...