Under the reign of Cecrops, men and women could vote equally. Society in Athens at that time was sexually freer.
This freedom was undermined when Athene and Poseidon raced for patronage of the city of Athens. While the men voted for Poseidon, the women voted for Athene.
Since the women were more numerous Athene won the race.
This angered the men and in their revenge the men took away the vote from the women. And with that women lost political and sexual freedoms.