Quarantine is crucial in the early stages of an outbreak to contain the disease and prevent an epidemic. By isolating potentially infected individuals, public health officials can monitor symptoms, conduct diagnostic tests, and ensure that those who do develop the disease receive appropriate medical care without spreading the infection further.