A muffler muffles the sound of the exhaust. Because the air makes a number of bends, collides with everything and is therefore slowed down, the air speed and therefore also the sound will be dampened.