Macs will suspend to RAM and write the RAM state to disk, then use the RTC to wake up 1-3 hours later and power off the RAM to save battery.[1] Resuming from disk takes 5-10 seconds while resuming from RAM takes a second, which is why OSes don't just suspend to disk.
The generic name for this behavior is "hybrid sleep" or "hybrid suspend". It's when the laptop does everything it needs to hibernate (suspend to disk), but then just suspends to RAM.
Almost every laptop is capable of this. The limiting factor is software support. You have to deal with different hardware RTCs, different disk encryption setups, swap partitions vs swap files (and how big they are). It's complicated enough that I decided it wasn't worth configuring, so my laptop loses 3-4% of battery life overnight. That said it is possible on Linux, especially if you use a swap partition instead of a swap file in an encrypted disk.
1. https://support.apple.com/en-us/HT202124