vaccinations are in different forms.
all live forms even virus is made of some sort of protein.
also "use poison to attack poison"
my understanding is to use controlled dose of something which might be harmful to human body to cure no matter by neutralization/direct target/or any other methods.
you cannot just simply take it word by word