Muffler wrapped in carpet?

So I noticed that both my mufflers are wrapped in carpet. Did the factory do this? Or is this possibly an attempt by one of the previous owners to dampen the sounds.

Just asking because that carpet is soaked and I don't really want to replace it, but will if I have to.