My theory is that The Rani was unable to get a TARDIS after she was exiled from Gallifrey, and was trying to get to the Land of the Lost to steal one. We don't see her actually do that in the show but a later episode revolves around a missing pylon.