As a first step in answering this puzzling question, we must understand that all of God’s commandments were given for the good of mankind! King David extolled God and continually praised Him for His Way: “…For all Your commandments are righteousness” (Psalm 119:172).
Very specifically, God chose the descendants of Abraham, Isaac and Jacob, for a unique relationship with Him. Note what He offered to Israel:
“‘Now therefore, if you will indeed obey My voice and keep My covenant, then you shall be a special treasure to Me above all people; for all the earth is Mine. And you shall be to me a kingdom of priests and a holy nation…’” (Exodus 19:5-6).
"You are the light of the world. A city that is set on a hill cannot be hidden."
-Matthew 5:14