The pattern of erosion on these mortar joints suggests burrowing by masonry bees. In extreme cases the structural integrity of the building could be impacted upon.
The affected areas need to be treated with an insecticide before the mortar joints are repointed.