Well, to compress a compressed file already again is of course meaningless.
JPG and GIF have each other types of compression. PNG a third. That means you have to write three different programs, and they still can not be used for other files.
Just one example: The current SID-player plays * .dmg files that are fairly well compressible. I could install a much longer file in the "Demo Sauce".
If one instead writes a standard (de-)compression, it is necessary todo this once only - and can use them for any type of data.
For images you do just a "zip" before a 565-RAW file, and you're done.
The image used above can reduce by about 30% ("Deflate").
This can always be done, if a sequential access is ok. For example for pictures or the above-mentioned * .dmg. I can also imagine many other uses more.
In addition, all this can made quite simple, if you, for example, only allow one file per container.
The 1 KB (?) RAM-Usage is only during de-compression, on the stack.