Martians kept Kryptonite in case some Phantom Zone inmate turned up
They just didn't expect to have to use it against Superman.Superman calculated Supergirl's trajectory...
... Using Super-Mathematics! And Super-Mathematics are always right, even when they are wrong!◊