Earned income

 has a specific definition by the IRS and what qualifies is clearly stated here: IRS definition of earned income

Retirement income, Social Security, investment interest and dividends are specifically excluded from earned income - but taxed under a different category.