You have the power management setting in the BIOS set to "STR" - "Suspend To Ram".

Exactly as you speculate this maintains the working state of the computer in RAM and powers that whilst powering...