Those children have parents who have citizenship somewhere else, so the children are eligible for citizenship there "by descent".
Literally only the USA has this problem.
We can't seem to convince many of these countries to take back their own citizens, their descendants are a non-starter. If you think birthright citizenship is bad, the place to prevent it is at the border, not at the birth end.