1099-C Debt cancellation

Hello

So We had a repossession back in 2013, but the bank did not handle it correctly or per the laws

 

They brought us to court and tried to sue us for the balance of the repossession and we fought the lawsuit and won - court said we owe no money

 

Now the bank sends a 1099-C to IRS calling it debt cancellation even though we won against them in courts and IRS says we have to pay taxes on it? How is this debt cancellation when I won in court and didnt owe the debt??