They don’t see the actual vote; they’re only counting the registration of the voter.
The assumption is that a registered Republican will vote Republican.
Historically, that is true. Registered republicans vote republican.