If a woman "loses a baby" it usually means that she suffered a miscarriage. This, in this piece, is confirmed by the fact that it was "she had failed to give him" and "what ... would have been a son". This child was not born alive. Had the baby been born alive, it would have been a son for the couple.
Interested in Language