sometimes when i wake my laptop from sleep the login screen dont appear

so in past, i used to press the power button until my laptop powers off and then i power it on

today i try something different

i press Ctrl+Alt+Delete button and bingo the login screen appeared without me having to power off the laptop