One possiblity is that the agreement was for non-decductible alimony and having the payment funded by a QDRO would shift the incidence of taxation to the ex-spouse.
To qualify for the section 72(t)(2)(C) exception the distribution must be made by the plan administrator to an alternate payee in response to a qualified domestic relations order (QDRO).