The card game gin rummy first attested 1941 (described in "Life" that year as the latest Hollywood fad); OED lists it with the entries for the liquor, but the sense connection seems obscure other than as a play on rummy.