Callouts, sometimes called leader lines, are lines between labels and features on a map. They are useful when constraints of space force a label to be moved away from the feature. The callout helps to reconnect the label to the feature it refers to.
There are probably multiple ways to do this, but here is one way using a geometry generator in QGIS 3.x: