The same reason he won Michigan and Pennsylvania despite those two states rejecting MAGA candidates in 2020 and 2022 - Hillary Clinton was a very weak candidate.
Pretty much this, and the high share of 3rd party candidates. Trump didn't even get 47% of the vote in NH. A better D-candidate like Obama or Biden could have won 54-46%, with Trump's vote share staying stagnant.
That's also the reason he come close in MN, where Trump received 44.9% of the vote. It was just close because HRC only ended up with ~46%. A more popular Dem would have cleared 50%, increasing the margin by more than 3 times.
Generally speaking, people need to remember that Trump just won 46.1% of the NPV, which is barely more than McCain's 45.7% in 2008 and less than Romney '12, who got 47.2%.