Simply put, compression, at least the way it's used nowadays, strives to make music a constant level by destroying dynamic range. It boosts the low lwvwl signals up to near the maximum it can before clipping and tries to "limit" any higher levels to not clip.
A good working example is why commercials seem louder than the programs.