The IRS created a program in 1996 that allows non-citizens residing in the USA who are earning money to report their income. Most undocumented immigrants have decided it’s worth the risk to document themselves as law-abiding taxpayers so they will have good standing legally and socially if one day amnesty—and with it, permanent legal status—is offered by the federal government.
Source