See Varicella.
Community immunity happens when enough people in a community are immune to a disease that they “shield” those who don’t have immunity from getting the disease. This immunity can come from the disease itself but that means that a lot of people got sick. It’s much safer for the immunity to come from vaccination. Also known as herd immunity.