c. 1200, "storage chest" (also applied to the biblical "ark of God"), from Old French huche "chest, trunk, coffer; coffin; kneading trough; shop displaying merchandise," from Medieval Latin hutica "chest," a word of uncertain origin. Sense of "cupboard for food or dishes" first recorded 1670s; that of "box-like pen for an animal" is from c. 1600.
"small, enclosed space," 1825, the first element possibly from a diminutive of cub "stall, pen, cattle shed, coop, hutch" (1540s), a dialect word with apparent cognates in Low German (such as East Frisian kubbing, Dutch kub). Or perhaps it is related to cuddy "small room, cupboard" (1793), originally "small cabin in a boat" (1650s), from Dutch kajuit, from French cahute. OED calls it "a nursery or children's name."
"pawn, debt," 1859, American English, in hock, which meant both "in debt" and "in prison," from Dutch hok "jail, pen, doghouse, hutch, hovel," in slang use, "credit, debt."
When one gambler is caught by another, smarter than himself, and is beat, then he is in hock. Men are only caught, or put in hock, on the race-tracks, or on the steamboats down South. ... Among thieves a man is in hock when he is in prison. [G.W. Matsell, "Vocabulum," 1859]