Lossless vs lossy
Lossless compression keeps every bit of the original; lossy compression throws away detail you are unlikely to notice to make files much smaller.
PNG, FLAC, Apple Lossless and ZIP are lossless: decompress them and you get back exactly what you started with. JPG, HEIC, AAC, MP3, H.264 and HEVC are lossy: they discard detail to save space.
Lossy compression is why a phone video can be shared at all, but repeating it stacks the damage. Each time a lossy file is re-encoded it loses a little more, which is why FileCaddy's fit-under search always starts again from your original rather than recompressing its own previous attempt.
Some edits can be done without re-encoding at all, such as trimming a video at keyframes or removing metadata from a JPG. FileCaddy uses these lossless paths where it can and tells you when it couldn't.