Vacca = Latin for cow. A deliberate cowpox infection was used to protect against smallpox, which has a similar protein coat. Hence "vacca"nation.
BTW there is an extensive body of literature refering to milking girls as being especially attractive. They would catch nonscarring cowpox in the course of their duties, and thereby avoid the disfiguring scars of smallpox...