Why werent women allowed to fight in world war 1?

Women were allowed to fight in World Wr one.