The elastic threads let a shirred panel stretch over the body and snap back, making garments forgiving across sizes. A shirred back is a common way to fit a dress that's smooth in front.
Shirring is essentially the elastic-thread version of smocking, and produces a softer, gathered texture related to ruching.