Here the repetition of these words is used as an exclamation. People repeat a name or title in this way when trying to find someone or to get someone's attention.