Zigzag stitch geometry is produced when the needle moves rhythmically side to side while stitching, while the feed dogs are following only in the normal forward "four motion" movement.
Zigzag stitches are used when a stretchable stitch is required, such as when sewing stretchy fabrics.