c. 1300, "amorous playing, sport," later "piece of fun or entertainment" (c. 1500), "thing of little value, trifle" (1520s), and "thing for a child to play with" (1580s). Of uncertain origin, and there may be more than one word here. Compare Middle Dutch toy, Dutch tuig "tools, apparatus; stuff, trash," in speeltuig "play-toy, plaything;" German Zeug "stuff, matter, tools," Spielzeug "plaything, toy;" Danish tøj, Swedish tyg "stuff, gear." Applied as an adjective to things of diminutive size, especially dogs, from 1806. Toy-boy is from 1981.
box n.1
"rectangular wooden container," usually with a lid, Old English box, also the name of a type of shrub, from Late Latin buxis, from Greek pyxis "boxwood," pyxion "writing table, box," made of boxwood, from pyxos "box tree," which is of uncertain origin. Beekes suggests a loan-word from Italy, as that is where the tree is native. Dutch bus, German Büchse "box; barrel of a gun," also are Latin loan-words.
The meaning "compartment at a theater" is from c. 1600 (box seat in the theatrical sense is by 1850). The meaning "pigeon-hole at a post office" is from 1832. The meaning "television" is from 1950 (earlier "gramophone player," 1924). The meaning "station of a player in baseball" is from 1881. The graphics sense of "space enclosed within borders and rules" is from 1929. The slang meaning "vulva" is attested 17c., according to "Dictionary of American Slang;" modern use seems to date from c. World War II, perhaps originally Australian, on the notion of box of tricks. Box lunch (n.) is attested from 1899. The box set "multiple-album, CD or cassette issue of the work of an artist" is attested by 1955. To think or act outside the box "contrary to convention" is attested by 1994.