herodotus taught this. herodotus was an ancient greek historian who was born in halicarnassus in the persian empire. he is known for having written the book the histories, a detailed record of his "inquiry" on the origins of the greco-persian wars.
so they can differentiate themselves from others as they saw themselves as the superior race. the star was basically a symbol that meant you are a less of a person than i am because of my race. the star was also degrading for those who had to wear it because they were aware of this and the nazis used the notion to make them feel less like a person.