I always figured that lines were put in the sidewalk to give the sidewalk a weak spot to crack when the ground shifted, to make it easier to replace a section if need be, ,and for looks. The thing that confuses me is that sidewalks crack all over the place anyway! Especially where there's a meter box installed.