Why did the doctor switch jobs?

Why did the doctor switch jobs?