They are not married in the eyes of God. (at least not the Christian or Judaic God, or even in the eyes of the Islamic God) They are not married in the eyes of society.
The child is biologically related to only one of them. The other is an unrelated cohabitant.
The child is proof that one of them and an unnamed man who donated the sperm can have a child. "They" did not have a child.