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