How would they feed a child if Lori was dead? It's not as if a prison has a baby store stocked with formula. I just thought of that.
With Carl, you simply recast if the actor gets too tall. And I don't see how Rick ever assumes authority with unstable Shane around. I still say it was necessary for the story to progress well.