Why does the Taliban want to stop women from doing anything?

Like if women can't be doctors, nurses, and midwives but women can't see male doctors then are they just going to Russian roulette their lives? Logically wouldn't you want women healthy especially to have children and to use as a slave? Also why are they trying to ban women from speaking?

I don't even think Afghanistan 500 years ago was this strict and illogical.