Stuffing makes the woofers "see" a slightly larger volume than the box is.
Air under pressure produces heat and the stuffing absorbs this heat. As tiny as this heat is, this is the physical properties behind how it works.
It also reduces internal reflections which could cause the cones to become non-linear.
Some cabinets need a lot of it, others not so much.