Take a look at the settings in Layout Options > Vertical Spacing > Vertical Justification. Your second page is below the threshold (in Engrave mode, look at the % indicator in the lower left hand corner of the page) for Dorico to apply vertical justification.
Here’s a guide from @benwiggy that explains how these settings interact.