The story
Commonly associated with a shape sorter, a baby toy that consists of (often wooden) pegs that need to be inserted through holes in a box, using the hole that has the same shape as the peg. While all the shapes are of roughly equal size, each peg will only fit in the hole that has the same shape. Inserting a peg in a different hole would require either modifying or breaking the toy.
Etymology from Wiktionary, CC BY-SA 4.0.