This happens when saving a photo to the jpeg format. Lossy compression reduces a file by permanently eliminating certain information, especially when redundant. This may degrade the image slightly and you will not see the changes until you reopen the file.