Hear me out
The debt Robert sustained during his reign was the only thing keeping him safe. I firmly believe that Petyr Baelish was a true Baratheon loyalist up until his death (in the books at least) and only began his "master plan" once it was clear Ned couldn't win. So Littlefinger was purposely getting the iron throne in debt to keep Robert safe. I'll go over all the reasons why the Baratheons being six million in debt is a good thing for the Baratheons
Reason one: half of it is from Tywin
Taking loans from Tywin has no downsides. This may sound incorrect as Tywin is notoriously one of the most lethal and intelligent men in Westeros. But if you're a Robert supporter what are the downsides? The Lannisters are down three million gold dragons, they're tied to Robert at the hip if the Targaryens try to come back, and what is Tywin going to do if the Baratheons don't pay up? Usurp his own grandson? Petyr Baelish played Tywin like the Reynes and Tarbecks played his father. Except house Baelish is still around and house Lannister is in the shitter currently
Reason two: a large chunk of the debt is to the Iron Bank of Braavos
Braavos is home to thousands of sellswords and sellsails and is a few days boat trip from the biggest port cities in the North and the Vale. (two pro Baratheon kingdoms btw) If the Targaryens were to ever retake the throne, they would obviously not consider the Baratheons debt to be their own debt. So the Iron Bank is kinda forced to support the Baratheons if they ever want to see a return on their investment. Since the head of the Targaryens during Robert's reign was literally referred to as "the beggar king" there is no chance that the Iron Bank or the sellswords associated with them would ever swap sides.
Reason three: another large chunk of the debt is from the Faith of the Seven
Once again the Targaryens would not assume the debt of their usurper. If the Faith wants their gold back they have to back the stag. Since the Faith has enormous power over five of the seven kingdoms, this is a big win for team Baratheon
Reason four: bread and circuses
Everyone in Westeros loves a good tourney. When Westeros is doing good, tourneys and feasts are quite common around the continent. Spending an enormous amount of gold on entertaining both the nobility and the smallfolk is a good plan if you want to keep a usurper on the throne. The smallfolk will see your reign as a happy and peaceful one (making a Targaryen restoration an unpopular idea among the masses) and the new generations of nobility will get to make a name for themselves and will generally consider Robert's reign to be an era of good feelings
So in the end, Petyr Baelish was the Baratheons strongest soldier