Why are vaccines used to kill bacteria?

Vaccines are used to make your body produce antibodies and T-cells against viruses or bacteria! The Measles and Flu vaccines are viral. The Whooping Cough (Pertussis) and Tuberculosis vaccines are bacterial.