Bastila Shan was intercepted by Sith forces in orbit of Taris and the crew evacuated from the Endar Spire to the planet. While KotOR's protagonist is on the planet, he doesn't do much more than
save Bastila and run from Taris
But Taris was already controlled by Sith forces, so why did Bastila go here? Is there any information about that?