Before we can understand the connection of Torah and souls from an internal angle, we must understand the concept of justice. How does G-d judge the world? G-d created the world from absolute nothingness and keeps everything in continued existence. We have a similar power with respect to free will. Our choices come from non-existence; there's not a hint of where that choice will come from by virtue of anything in reality.