Deductions & credits

Tax code says the child must live with you for more than half of the year; so, why would we be able to claim a child who was born after July?