Allowing the batter to rest allows the flour and cornstarch to absorb more moisture making a thicker batter which leads to a crispy outside. It also allows the gluten to relax which results in a soft and tender texture inside.