Muffler certainly plays a role in lowring noise, but many other factors contribute too, such as padding between engine and the passenger compartment. The balancing of engine i.e. thus reducing vibrations. The adjustment of belts such as fan belt, timing belt and ac belt so that they dont slip niether are too tighly set so that firction causes extra noise and also extra wear and tear.