Bastila lead Revan into a trapped but instead of killing him or her, whatever gender you desided to be, they took Revan erased his/her memory so the Republic used him/her.
When you play the game you won't confused sa pamamagitan ng the visions cause the visions is from your past of how you were captured and how.