What you need to keep in mind is that (1) there are two dimensions (gender and voting participation) and (2) the question asked by the chi-square test of independence is whether, in this case, gender and voting participation are independent of each other.

