But they will never follow a stranger; in fact, they will run away from him because they do not recognise a stranger’s voice.”
There are accounts given of travellers to Palestine dressing in the garb of the shepherd and trying their best to imitate his voice and call, but the sheep only run away. Jesus was using a real situation to illustrate His spiritual point.