Origin of the quasi-quantized Hall effect in ZrTe5