There are different types of audio files based on their compression: lossless and lossy. Some audio formats can use both types of compression.
The advantage of lossless audio files is their high sound quality. For example, audiophiles often prefer the quality of a FLAC file over any lossy audio file. Lossy files, however, are much smaller in size. That is why lossy formats like MP3 are more common and better supported.