In several ways. For example...
Seeing people as human beings with human rights challenges the normalisation of the deaths of thousands. It challenges people to say "hold on, this can't be the only option", to act to encourage others to see that this doesn't have to be the only way. It can motivate people to try to help ease suffering of people in need - maybe through charitable donations, writing to MPs, demonstrating, being mindful about where their money is going, showing support and comfort for bereaved people here and elsewhere in the world, etc.
Political action can influence political powers' decision-making. Looking after grieving people can help give them hope and strength to keep going when their world has been shattered. Sending aid can feed a starving family. Volunteering can provide practical support.
Giving a damn is a necessary step towards becoming someone who leaves the world in a better place than they found it. That's not just limited to one conflict, but to all such situations wherever they occur.
It's quite sad to see so many people's hearts so closed off that they cannot even recognise the importance of caring about what happened to a helpless baby.
A young baby is one of the most vulnerable people in the world, especially a premature baby. They can't feed themselves, keep themselves warm, move etc - without an adult caring for them, they'll die. Many of us here are parents, so we will have held a tiny life in our hands and known how fragile that life is and how dearly we love them. We wouldn't want that life to end cold, hungry and alone.
Every baby is someone's child. Someone has almost certainly loved those tiny lives just like we love and have loved our own children.
And yet, people online defended and justified their deaths. That's certainly not what they would want for their own children, but it didn't matter that much when it was someone else's child.
That's a very dangerous path for a society to go down.
So, if someone has become so detached that they can't care about dead children, then they probably need to step away from the internet and take some action to rediscover their empathy for others.