JPEG is a lossy format, which means that some image data is discarded when it is compressed, reducing the quality of the final file. However, image data can sometimes be discarded with little or no noticeable difference in quality.

This is a picture of the feature being described.

Original image; quality setting of 50; quality setting of 20

To control how much quality is lost when compressing a JPEG file: