And yes this comes from LDS sources:
Anciently, Jewish law proclaimed that only flocks designated for temple sacrifice could be raised near cities; Bethlehem being in close proximity to Jerusalem–the seat of Roman power and the Temple. Thus it was known to all that the firstborn male lambs from the area around Bethlehem,* Beth Lechem in Hebrew means “House of Bread” and held no real significance until “He who would be known as the Bread of Life was born” (Ensign, December 2013, Come Let Us Adore Him, commonly known as the City of David, were considered holy, and set aside for sacrifice in Jerusalem. (Even to this day in some parts of the Middle East this practice still exists.)
Generations of hereditary shepherds tended these sacred flocks, designated by Temple Priests from their youth and specifically trained for this royal task. It was an honor and a sacred duty. They were protectors and guardsmen of these special flocks and were willing to risk their lives for their sheep.
They were taught and spiritually educated in what a sacrificial lamb must be like, and to make sure that these lambs were never injured, damaged or blemished. Such a shepherd was King David in his youth… on the very same hills.
In the spring, during lambing season, the bawling of sheep rang across the hillsides and fields of Bethlehem. The newborn lambs were brought to the Tower of the Flock–a large stone tower in Shepherd’s Field anciently referred to as Migdal Eder–where a ceremonially cleansing of the new lambs took place in a specified birthing room.
These shepherds, under special rabbinical care, would routinely place the newborn lambs in a hewn out depression in a limestone rock known as “the manger” and wrap them in swaddling bands (strips of gauze-like cloth) to prevent them from thrashing about and harming themselves. Once they had calmed down they could be inspected to see if they qualified for temple sacrifice … “without spot or blemish” (see The Jewish Oral Tradition & Alfred Edersheim, The Life and Times of Jesus the Messiah).
“And so it was, that, while they were there, the days were accomplished that she should be delivered, And she brought forth her firstborn son, and wrapped him in swaddling clothes, and laid him in a manger; because there was no room for them in the inn” (Luke 2:6-7).
A Type and Shadow or the Last Resort?
There are scholars of ancient scripture who believe that Joseph and Mary were directed by heavenly angels to the Tower of the Flock–Midgal Eder– for the birth of Jesus, the Lamb of God, the ultimate sacrifice!
And that the newborn Jesus was ceremonially cleansed and swaddled with the same bands used on the tamyid lambs brought there for inspection before sacrifice, and laid in the hewn out limestone called “the manger.” Thus when the angel pronounced to the shepherds “And this shall be a sign unto you; Ye shall find the babe wrapped in swaddling clothes, lying in a manger” there was no need for the angel to give these shepherds directions to the birth place because they already knew! (Luke 2:12)
Whether Joseph and Mary ended up at Midgal Eder, having been led there by Holy angels in symbolic testament of things to come, or whether they ended up in an animal stable as a means of desperation or last resort, we will not know until those details of Christ’s birth are revealed.
There are two kinds of shepherds, one you hire, a hirling, and the one who is a shepherd, who lives with the sheep and makes them part of his life. The shepherd is the actual owner of the sheep. The relationship between the shepherd and the sheep is intimate, in that the shepherd names all the sheep. He calls them by name, and they come at the sound of his voice.
The sheep pens of old often had no actual gate on the pen. The shepherd slept across the doorway, making him the gate by which anyone would have to pass to get access to his sheep. The pens were often built with high walls lined on top with thorns for further protection. If something or someone did vault the walls and get in, the shepherd would put himself between the intruder and the sheep to protect the frightened animals. His body was used as the shield to protect them. The bond between the sheep and their shepherd was so complete that several flocks could sleep together in the same pen, but when the shepherds called to their sheep in the morning, the sheep would sort themselves into their respective flocks and would only follow their shepherd. They would not listen to the voice of a strange shepherd.