When the hooks align with one of the punched holes, they are able able to pass through the hole with a thread, thus creating the required stitch to form the pattern.
Machine function that traces through the design, stitch by stitch, without sewing - used for mending. Those stitches made when the needle is disconnected, later removed by thread cutting.