Vaccinating breastfed babies at the recommended ages is necessary as their immune system is not fully developed at birth, which puts them at a higher risk of getting infections. While breast milk helps protect babies from some infections, additional protection through vaccines is important.