Question: how do cowpox prevent smallpox?
Answer: After inoculation, vaccination using the cowpox virus became the primary defense against smallpox. After infection by the cowpox virus, the body (usually) gains the ability to recognize the similar smallpox virus from its antigens and is able to fight the smallpox disease much more efficiently.