"embroidery specimen by a beginner to show skill," 1520s, from sample (n.); earlier "pattern, model, example to be imitated" (early 14c.). The connecting notion is probably "piece of embroidery serving as a pattern to be copied, or to fix and retain the pattern." As "a collection of samples" from 1912.