We claimed out 3 month of twin granddaughters but weren't allowed the child tax credit or the earned income credit. Out AGI was under 50k Why?

The filing tool said it was because they didn't live with us for 6 months but they were only alive for 3.being born in September