Just like the existing scalebar setting of the same name, this new setting allows you to set a page-size-based range for map grid intervals. The grid interval will be dynamically calculated based on the map extent and scale to pick the largest possible "pretty" interval which results in grid sizes inside the desired range.
This change makes it possible for you to create layouts and layout templates with grids which respond elegantly to a wide range of map scales!