Are you sure it is Windows not Chrome?
If you closed the lid while Chrome is running, it prevents Windows from sleeping.
https://techjourney.net/chrome-prevents-windows-from-going-i...
If you closed the lid while Chrome is running, it prevents Windows from sleeping.
https://techjourney.net/chrome-prevents-windows-from-going-i...