Allowing gluten-free batter to rest gives the flours and starches time to absorb the liquid before baking and improves the structure of baked goods. It also helps to thicken the batter and prevents it from becoming overly sticky. You can read more about the benefits of resting batter in this article from America's Test Kitchen.