Needlework, like samplers have traditionally provided girls and women with a wholesome activity (preventing the devil from influencing their idle hands) and often included bible verses or quotes about morality. A quality sampler was also seen as an indication of how marriageable the girl who stitched it was and how ordered a house she would keep.
