You are not understanding the difference between deficits and accumulated debt.
Deficit is the annual budget shortfall. Accumulated debt is the total debt.
Obama inherited a $1.5 trillion deficit from Bush (Bush's 2008-2009 budget).
By the time Obama left office, the deficit had been reduced...