The purpose of the census is allocating Federal representation. Only citizens are eligible to be counted for this.
Actually we used to count some non-citizens as 3/5 of a person.