This isn't really true, the code works like most cross platform codebases where most of the code is common and then there's a bunch of platform-specific backends that handle graphics, sound, input, etc. They used the same gameplay code for Xbox 360, Playstation 3, Playstation Vita, Xbox One, Playstation 4, Wii U, and Switch, so clearly there's not really much keeping it stuck to a single platform. A recent leak of the legacy console source code revealed that they also had an internal Windows port to make development easier, although you still need a controller to play.
This isn't really true, the code works like most cross platform codebases where most of the code is common and then there's a bunch of platform-specific backends that handle graphics, sound, input, etc. They used the same gameplay code for Xbox 360, Playstation 3, Playstation Vita, Xbox One, Playstation 4, Wii U, and Switch, so clearly there's not really much keeping it stuck to a single platform. A recent leak of the legacy console source code revealed that they also had an internal Windows port to make development easier, although you still need a controller to play.