It appears this is legal in San Francisco. (big surprise)
It’s for San Francisco School Board. The city allows non-citizens and citizens alike who have students enrolled to have a say in local education via vote.
For example, you are here from India on an H1-B Visa and you have kids in the SF schools.