If one plugs a Windows keyboard into a macOS computer, the Windows key acts as the ⌘ Command. This swaps the locations of ⌘ Command and Alt from standard Macintosh keyboards. Plugging a Macintosh keyboard into a Windows (or Linux) machine makes ⌘ Command act like ⊞ Win, again with the locations swapped with Alt from standard.