Resting the batter gives the leaveners more time to react and for the flour to absorb more moisture creating a thicker batter. The baking powder is activated twice: when the wet ingredients are added to the dry and when the muffins enter the oven. Allowing the batter to rest allows the baking powder to have a longer activating time creating more lift in the batter.