It is a one part of exhaust system
A mufflers only real purpose is to make your car less noisy and is a legal requirement, cars actually preform better when the airflow is more free (ie without a muffler) it would be hard to install a muffler upside down/backwards, and it would just not work as effectively (there would be no point)