Statistics explains that it works. Give people cowpox as a vaccine, see reduction in small pox cases that is statistically relevant over a long period of time? Well guess what bub, then the coxpox inoculation is the causative agent for protection from the small pox.
All you are showing me is that the vaccination does not provide 100% immunity, okay. So what? Again you are misinterpreting things.