You're missing the "herd effect". There are cases where children are too young or have another health issue that prevents them from being vaccinated. These children rely on the greater population to be vaccinated and to help decrease their chances of becoming infected.