Obama inherited a housing crisis and two wars.
Biden had to deal the tail end of a pandemic and the financial fallout of that.
Not saying both couldn't have done much better on the budget but, if you compare them to Bush and Trump, they honestly do look quite competent.
Neither of those excuse having a budget in the negative.