This is because WSL1 runs with older versions of VMware and VirtualBox—and WSL2 does not, although it is compatible with the latest versions of VirtualBox and VMware, which both support Hyper-V.
Assuming you haven’t previously set up WSL2 on your system ... Type-2 hypervisors like VirtualBox provide a straightforward means to run Docker containers with the help of virtual machines.