The sleep stuff is part of the ACPI standard, it's all documented.
It's up to the motherboard/SoC to support it properly, and Microsoft has an "entire system view" of how Windows works and can integrate it deeply. Compare that to Linux, the companies involved mostly care about servers, and the distros are assembled by disparate groups that don't have the hardware testing capability that MS or OEMs have.