What national ID?
The US doesn’t have a national ID card. I have a federally-issued ID card as a lawful permanent resident, but the typical US citizen has what? Their main proof of citizenship is their birth certificate, issued by their state, and doesn’t have a photo (and if it did, would probably be a baby photo). The people with passports tend to have enough money to travel internationally, which is a pretty small proportion of the population (as it’s a big country, so even a lot of people who can afford vacations will vacation in the next state over at most).
Short answer (that clears things up for most non-Americans): There is no national ID card.
When you register to vote, you’re expected to provide proof of citizenship, which for most Americans (who don’t have or have use for a passport) means a birth certificate plus some photo ID (which ultimately proves that a person with your name and your birthday was born on US soil and you are in possession of their birth certificate – so it’s very likely you). Bringing your birth certificate to vote would be kind of risky, since it’s the origin of all of your other ID and pretty much the only record that you’re a citizen. (Work visa holders and permanent residents get social security cards, for example.)
Funnily enough, if you’re an adult immigrant it’s almost safer, because there’s a huge federal paper trail of photos and records proving your citizenship (versus this flimsy piece of state-issued paper that native-born citizens have).
Of course, if election officials have some discretion on who needs to prove their citizenship, it’s rife for abuse.