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.