Some genetic conditions are incompatible with life and based on your question we can assume there was nothing else they could do to help the baby.
Your mom had carried and loved this child for 9 months. While it was hard, she did get to have her child at home and bond and love that child til it was time to go. A profoundly bittersweet experience. Ask her if she wants to share more with you.