Back when CRT monitors reigned supreme, screensavers were necessary to counteract the effects of display burn-in. These days, there's less of a need for screensavers, but they remain a vestigial part ...
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 ...