We leave when we "win"... I don't think anyone knows exactly how it works, except for time and gaining many memories. But whoever you were before, there was something you wanted badly enough that you decided to come here—willingly, as the case seems to be. In the end, the Judges will offer to grant you one wish.