In the ability to legally and without hassle install it on random PCs.
The kernel is open source
The actual userland is proprietary in both cases. Opening Apple Terminal on macOS and using homebrew is as “open” as running Windows Terminal with WSL: Basically the things in the terminal are FOSS, the graphical surroundings of both systems aren’t.