I think the best explanation of the situation comes from Gikas Hardevoulis, a former advisor to the then-prime minister of Greece, who said “The trade should not have been done”. He then added, "It was done to dress up the debt figures by some smart idiot in the finance ministry".
For details and reasoning check out this link.