Why is this allowed?
EXEMPTIONS FOR DEPENDENTS
Citizen or Resident Test
You generally can’t claim a person as a de- pendent unless that person is a U.S. citizen, U.S. resident alien, U.S. national, or a resident of Canada or Mexico. However, there is an ex- ception for certain adopted children, as ex- plained next.