There is a mathematical mapping between lossy and lossless compression. They are effectively the same problem (theoretically, even though implentations are typically very different)
LLM's would make excellent (but very slow) lossy or lossless compressors.