Why are images uploaded to main domain, when using multisite with different domains?

never saw this hack before, but that is all it is – a hack. While it might work at some situations, wordpress core do not officially supports (yet) having two domains on one network install, and therefor YMMV to what will work and what not.
You are much safer having two different installs then taking this path.