A clearer and more grammatically correct way to ask this question is: "Why did you leave your previous job?"