One of the biggest keys to me for Carlos winning was holding his serve and forcing tiebreaks in the 3rd & 4th set. Gave him just the extra bit more time to recover.
As for Novak winning. To me coming in fresher absolutely helped but to me, Sinner’s game while very good is also predictable. So when he’s having an off day against a really good player, the cracks are more evident.