hypothetically, I suppose it could alternately be done by instances just federating the number of votes from their instance and only storing who voted what internally. Though then you might get issues with very easy vote manipulation if a server just says a lot of people voted a certain way without needing to make accounts to “justify” the fake votes.
Isnt this the exact reason why there was such concern over the idea of Threads federating with the fediverse at large?