A hermetic seal is named after a legendary sage who probably never existed. The word joins airtight containers to ancient magic.
The Greeks identified the Egyptian god Thoth, god of wisdom and writing, with their own Hermes. Merriam-Webster explains that they called him Hermes Trismegistus, "thrice-great Hermes." He was believed to have written a body of mystical, philosophical and alchemical works.
The writings survive, but their authorship is a legend. According to Encyclopedia.com's entry on Hermeticism, the movement arose in Alexandria around the first century AD. The texts presented Hermes as an ancient Egyptian priest, and many readers thought he lived around the time of Moses. In 1463 Cosimo de' Medici commissioned Marsilio Ficino to translate them, and Ficino accepted their claim to great age. In 1614 the scholar Isaac Casaubon showed that the texts were of late origin.
English borrowed the adjective from Medieval Latin hermeticus, built on Hermet-, the stem of the sage's name. Merriam-Webster dates it to 1605, when it described the mystical and alchemical writings attributed to Hermes Trismegistus. Because those works were famously obscure, the word came to mean anything difficult to understand or occult.
The airtight sense has its own legend. Merriam-Webster records the belief that Hermes Trismegistus invented a magic seal for keeping vessels airtight. That is how "hermetic" came to mean airtight, both literally and figuratively. The real seal belonged to the alchemists, who claimed him as their founder. Wordorigins.org cites a "Hermes seal" in an English translation of 1559. It describes closing the mouth of a glass vessel with hot tongs. "Hermetic seal" appears by 1650.
Today the word has spread further still. Merriam-Webster lists senses meaning impervious to outside influence and even solitary, as in "leads a hermetic life." The obscure-writing sense survives too, as in "a hermetic discussion." A name tied to a god of writing ended up meaning something nobody can get into.