It also has some early functionality where you can turn that shell into a Docker container, so you can run the same shell + program in other environments or in the cloud
I wonder if it takes this approach because there's some issue with using Nixpkgs' dockerTools on macOS— those tools let you create Docker/OCI images without even having Docker installed.