Deductions & credits

The question is: why is Turbotax allowing this $10,000 contribution to be counted as "earned" income for the purpose of letting me make a $7000 IRA contribution and thus reducing my tax liability.  ( I'm referrencing IRS pub 590-A )