This serves two purposes. One is to allow the glutens in the flour to rest and hydrate. The other is to help the butter fat resolidify before baking, creating beautiful flaky layers.