The shepherds were given a "sign" by the Angel in order to know that the Saviour, Christ the Lord, was born. "You shall find the Infant wrapped in swaddling clothes who lays in a manger" (Lk 2:12), said the Angel. The Evangelist says also that when the shepherds arrived to Bethlehem found "Mary and Joseph and the Infant laying in the manger" (Lk 2:16). Only seeing through the presence of Mary and Joseph the revelation of the Baby becomes clear. The shepherds 'saw' first of all the virginity of Mary and the way Joseph was adoring the Baby. Then they were able to understand the sign and adore themselves Jesus the Lord.
Listen to Fr Serafino M. Lanzetta's podcast on this topic: