> Can someone explain why this needed a leak of the Xbox build for it to be possible.
It is the only executable that has been leaked. The fact that its the Xbox one is just a matter of chance of however the leak happened.
> Also why is the Xbox build a leak at all? Surely it's just a binary and assets pulled from a Xbox hard disc?
Someone presumably hacked into Rockstar or had a contact there that exfiled the Xbox binary to them. The on-disc binaries that ship on both Xbox and PS5 retail game discs are encrypted and can only be decrypted by the security processor on the custom AMD chips both systems use as CPUs.
FYI there are no game discs, game is download only.