The surprising departure comes just before an election that may serve as a referendum on the MAHA movement.