It has a really good compression algorithm and can preserve more detail in a smaller filesize.
As a website owner you usually pay for outbound traffic or atleast storage, thus having a smaller file reduces your cost, appart from the benefit that more users are able to load the file.
ImageMagick and FFMpeg usually do the trick.
I’ve already used them for some pretty crazy things.