Vaccines are effective at reducing death and hospitalization. They don't reduce transmission to zero, for the Delta variant in particular. Children and many teens are not vaccinated, and they're also particularly vulnerable to the Delta variant. Masks are most effective at stopping transmission. For the same reason cars are equipped with brakes and seatbelts.