After Madara's wife, an outsider, gives birth to their daughter, she died due to blood loss, Madara was fraustrated of the loss and dissapointed that his child was a girl not a boy to carry the clan, So, Madara only kept the child alive because she looks like his wife.