Compromises of these systems are a problem because they can DISRUPT elections, which is something a foreign adversary might well want to do as part of a cyber operation. But if China (or Russia) did manage to compromise these systems, they appeared not to have actually used the capability in the actual elections (which we know because they were not noticeably disrupted).
But helping state and local government shore up these systems is definitely an important and legitimate goal.