Why would anybody submit to the ICJ over a matter involving their own sovereign territory?
They are both in court so they both are subject to it.