Herd immunity occurs when a significant portion of a population becomes immune to a disease, thereby providing indirect protection to those who are not immune. This is particularly important for individuals who cannot be vaccinated, such as newborns or those with compromised immune systems. By reducing the overall number of cases, herd immunity also lowers the rate of hospitalizations.