Two 1098 interest forms due to refinance, entering second 1098 decreases deductible interest

I refinanced my primary home in 2024, and thus received two 1098s, one from before and one from after the refinance. The loan amount is greater than 750K in both cases.

 

When I enter the information from the first 1098, the amount of taxes I owe decreases due to the mortgage interest deduction. When I enter the second form, however, the amount I owe increases.

 

Why, when I enter the 1098 from the refinance, does the amount of deductible interest decrease? How can I resolve this? Thank you!