Retirement tax questions

Why is TurboTax 22021 allowing my deferred income from a 457b from box 1 on W2 to be reported as earned income for purpose on making an IRA contribution when box 11 on same W2 reports entire amount as from a nonqualified plan?