Anything which interrupts the exhaust gas pulses and flow will affect the sound. This is why turbos, manifold design, gpfs, cat sizing, resonators,...