Why men and women don't treated equally?

because people thought that the women duty is to live in the home and do their work and the men work is that to do the work in the office and earn money