Why is the word "but" a good choice for a conjunction in this sentence?

Early education for women was focused on domestic life, but educational opportunities for American have grown steadily throughout history.

The word "but" is a good choice as a conjunction in this sentence because it contrasts the idea that early education for women was limited to domestic life with the fact that educational opportunities for women in America have increased over time. The word "but" highlights the shift or contradiction between the two clauses, making it clear that progress has been made in expanding educational opportunities for women.