Before it had anything to do with needles, inoculate was a word for orchards.

The Latin oculus meant "eye." Merriam-Webster notes that Latin also applied it to things that looked like eyes, and a bud on a plant stem was one of them. Gardeners still call a bud an eye. Add the prefix in-, "into," and you get inoculare: to set a bud from one plant into the bark of another so it grows there.

That is what inoculate first meant in English. The Oxford English Dictionary has citations for this grafting sense going back to the fifteenth century, according to a word history that quotes it. The word later spread to other kinds of engrafting and implanting.

The medical meaning arrived in the 1720s. The OED's first citation for putting disease matter into the skin comes from 1722, and it concerns smallpox. Fluid or scab from a sufferer's pustule was rubbed into a small cut in a healthy person's skin. This practice was also called variolation. Lady Mary Wortley Montagu had seen the practice in Constantinople and promoted it in England in 1721. In Boston, the same method was used during that year's epidemic, after an enslaved African man named Onesimus described it.

The gardeners' word fit well. A small piece of one living thing was being planted in another, where it would take hold.

In 1796 Edward Jenner showed that cowpox gave immunity to smallpox. That work produced the word vaccine, from Latin vacca, "cow." Inoculate still covers introducing a vaccine, so every jab is, by name, a graft.

The eye in the middle of the word has many relatives. Ocular, monocle and binoculars all come from the same oculus. A less welcome descendant is the common misspelling "innoculate," which doubles a letter the Latin never had.