it's to prevent local governments from making it legal. in california, some cities have passed laws allowing non-citizens to vote in local elections (mayor, school board, etc). without these laws, nothing would prevent cities/towns in those states from passing similar laws.
United States