To escape is, at root, to step out of your coat. The word pictures someone seized by the cloak who wriggles free and runs, leaving the captor clutching an empty garment.
The pieces are Latin. Ex- means "out," and Late Latin cappa was a hooded cloak. Etymonline notes that cappa apparently first meant a woman's head covering, then the hood of a cloak, then the cloak itself. Put together, they give a verb that nobody ever saw written down. Etymologists reconstruct it as Vulgar Latin **excappare*, and the asterisk marks it as inferred from its descendants rather than found in a text.
Those descendants are easy to spot. Old French had eschaper, which became modern French échapper. The northern dialects and Anglo-Norman kept a hard "c" in escaper, and that is the form English borrowed. Merriam-Webster dates the English verb to the 13th century and the noun to the 14th. Italian scappare, "to run away," and Spanish escapar come from the same source.
The earliest English sense Merriam-Webster records is concrete: to get away, as by flight. Later English built a whole family on it, including escapee, escapism and escape velocity.
The same Latin cappa dressed a surprising number of other English words. Cape came through Spanish capa, and cap is a close relative. Chaperone comes from French chaperon, a hood, and only meant a companion for young women from the 18th century. Most unexpected is chapel. Medieval Latin cappella, "little cloak," was the name of the shrine that held the cloak of St. Martin of Tours as a relic. The word then spread to any building housing a relic, and finally to any place of worship.
So an escape and a chapel share an ancestor: a piece of outerwear, one left behind in a hurry, the other kept in a shrine.