Women in Afghanistan were suffering long before the Taliban. Amullah Khan tried to institute reform for the women of Afghanistan as early as 1923, but was forced to advocate by tribal leaders.
Afghanistan experienced a period of modernization. in the early 70's, but the bloodless coup by the communist ended that.
The rest is history. The women of Afghanistan have suffered from a mix of Islamic tribalism, and outside influences from the Soviets, Paks, and the US.