So, for me, I can empathise with her because she has lost her child and she must carry enormous guilt. I can think about all the different strands that could have contributed, so did she have a mental health issue, post natal depression, general depression etc, was the relationship abusive or coercive?, did she have another diagnosis the public weren't aware of or even one that was an issue but wasn't diagnosed.
I can look at her background and accept that she may have suffered trauma. That's not to suggest that all people in her situation have the same experience because you can't generalise. It's definitely wrong to suggest that just because she had been in the care system she would be an inferior parent. That's straight up tosh. However, it would also be wrong to dismiss her experiences and their potential influence.
From the little information we gave it seems she wasn't coping. I can empathise with this whilst also acknowledging her actions (or inaction) was wrong.
In a similar situation, and this will be unpopular, I can empathise with Shamima Begum having lost three of her children. It must have been beyond difficult for her. I can look at the situation rationally and know that she was 17, so still a minor, when she made that decision and that immature people make mistakes. So too, I can understand that whilst it might be kind to give people a second chance, it just isn't sensible. So despite my bleeding heart, lefty liberal tendencies, even I believe that it's the right choice not to allow her home (in part due to learning about the alleged involvement of other members of her family with nefarious business).
I think my point is that it is perfectly possible to see all sides of a situation, to empathise and try to understand, without that meaning you condone the actions.