Why is it important to get vaccinated against infectious diseases for public health?

Why is it important to get vaccinated against infectious diseases for public health?