Microsoft ships the entire Ubuntu, which does contain GPL3 code. Maybe they get away with it because it's not so integrated with the rest of Windows.
I don't exactly know how WSL2 works, but the main difference is that they now use an actual Linux kernel inside a lightweight VM, and that kernel's source is on GitHub. Userland still comes from appx-wrapped tarballs from Canonical.