Do you think a compiler always has to compile to the exact CPU it’s running on? You could target PowerPC on an x86 CPU if you just set the appropriate target flags (and had a compiler that supports it)
Speaking of which, you can compile binaries for 32-bit ARM on x86 as well; just run it on your desktop and then copy over the binary.
RIP bash.org