Your exhaust system and mufflers in particular are very sophisticated. Your muffler has baffled passages that the exhaust gasses move through to muffle engine sound.  These elements work together to have the sound waves hit one another to reduce the noise.