Green’s Dictionary of Slang

Horn, the n.

[ety. unknown]

[late 17C] the Compter prison, in London.