I think mostly they find there is no way out of the painful situation they are in, whatever it is. Having a child, she must have figured the child would be better off without her. (You don’t know what their relationship was like.) It’s always sad for those left behind and the logic may not be obvious to you, but an intelligent person may reason that suicide is the best way to go.