I think you missed the point: the episode was about how characters have been succumbing to their fears rather than taking necessary risks. The boy dies because he was literally consumed by this fears. Rick realizes he's also been going down that path, changes course when Carl is shot. That's the story of this episode.