The states that run these programs have political leadership that doesn't want to make a distinction between legal and illegal immigrants, and wants to give state -funded benefits to illegal immigrants, and so deliberately doesn't check citizenship or legal residency status when you apply for benefits.