Earned income (or compensation) is income earned from working, providing a service, etc. It is usually your W-2 wages in box 1 (minus box 11) or your net income from self-employment. Other types of income, like investments, pensions, and so on, are "unearned" income because they are not from working.
You must have income earned from working to contribute to an IRA.