The primary benefit is immunity. When the immune system encounters the pathogen again, it can respond more quickly and effectively. This not only protects the vaccinated individual but also contributes to herd immunity, helping to protect those who cannot be vaccinated, such as individuals with compromised immune systems.