What’s the difference between FLAC and MP3?

FLAC, MP3, WAV, AAC, OGG. Why are there so many different audio file formats and what do they mean? All audio file types have a purpose. Different formats are suited to different use cases, such…