It is because if you compile using PyInstaller on Linux (In your case WSL) it will generate a Linux binary. PyInstaller is NOT a cross compiler.