Why is my earned income credit so low in 2021 compared to 2020?

My earned income was $5k in 2020 and $1300 for 2021.   My income was $40k (2021) this year and last year (2020) I was out of work and only had $8k income.