1580s, from shoe (n.) + horn (n.); earlier shoeing-horn (mid-15c.).
in the figurative sense of "to put or thrust (something somewhere) by means of a 'tool,' " 1859, from shoehorn (n.). Earlier it meant "to cuckold" (mid-17c.), with a play on horn (n.). Related: Shoehorned.