Compression is “lossy” and it slightly alters the image data. In case of global changes (color, contrast…) repeated file editing will slowly degrade the image quality.
At good quality levels, compression is invisible in photography, but can be seen (so called “artifacts”) in computer-generated graphics and text.