They were among the poorest and least valued members of the community, as they still are in some countries, but God sent the angels to them so they got to seeing Jesus before anyone else. God’s values are different from Society’s.  The Lord is my shepherd was written by David who was once a shepherd and became a king.