Some who are vaccinated will still contract the disease. Some cannot be safely vaccinated because of preexisting medical conditions. For both groups, herd immunity provides additional protection; herd immunity is frustrated by those who choose to not vaccinate.