Repointing protects the building from water ingress and is also used to fill any irregularities on the faces of the bricks or blocks.