Letting the batter rest after mixing allows the flour to fully absorb the moisture and for the gluten to relax. Ends up with a better texture. No need to rest overnight as a single hour is enough time. However no one wants to wait an hour in the morning so they make the night before.