The Islamic injunction of segregation between men and women is a means to prevent the free mixing of the sexes, such as to prevent moral degradation of society.
Looking at the context of the verses, it becomes obvious that the commandment of this verse only relates to those tribes who continued hostilities against the Muslims even after they had migrated. In particular, reference is made to 5 tribes (Banu Khuza’ah, Banu Mudlij, Banu Bakr, Banu Damrah, and Banu Sulaiim) that did not honor the treaties they made with Muslims.
Dhimmis had a special place in Medina. Prophet Muhammad said, “If anyone wrongs a man with whom a covenant has been made [i.e., a dhimmi], or curtails any right of his, or imposes on him more than he can bear, or takes anything from him without his ready agreement, I shall be his adversary on the Day of Resurrection.”
The Qur’an, more than 140 times, highlights knowledge as a distinguishing characteristic of believers. Prophet Muhammad declared, “Seeking knowledge is a duty upon every Muslim.”  Archaic means, “obsolete – antiquated – old – ancient – out-of-date,” and Islam stands for the seeking of knowledge – thus it has always promoted advancement and freshness and growth – not the characteristics of an archaic system of thinking at all.
At a time in Arabia when POWs were either put to death or enslaved, the captives at Badr were allowed to purchase their freedom. Those who could not purchase their freedom “suffered” the responsibility of teaching ten children how to read. Education was their ransom. No example in history can even compare to this high standard Prophet Muhammad demanded of the Muslims.