"flight, escape," as in on the lam, 1928, in pickpocket slang, (according to OED attested from 1897 in do a lam), from a U.S. slang verb meaning "to run off" (1886), of uncertain origin, but perhaps from lam (v.), which was used in British student slang for "to beat" since 1590s (compare lambaste); if so, the word has the same etymological sense as the slang expression beat it.