For me, I had to enable "Windows Subsystem for Linux" feature in "Turn Windows features on or off" dialog.
I already had HyperV feature enabled, and virtualization enabled in BIOS.
I had deactivated WSL feature to fix a Docker Desktop issue with WSL. I followed a guide to reinstall WSL from scratch, and it seemed to me the Ubuntu distro when installed from Microsoft Store did not require the WSL feature enabled. It worked fine without it.
However, it was apparently needed for activating Virtual Machine Platform, which was then required by Docker Desktop to run.