Why do Iran’s oil intermediaries owe the government billions?

Iran says intermediaries handling its oil sales owe it billions of dollars, but how did the debts accumulate?