Lossy algorithms drop subtle differences in brightness and colour. The file gets much smaller, but the original data cannot be restored, and every re-save degrades the image further.
Lossy compression
Shrinking a file by discarding data the eye barely notices.