Why was human rights set up?

So after World War II, people realized that there needed to be laws against the systematic destruction of an entire group of people and their way of life. This came about due to the Socialist Party's (Nazi) reliance on terror tactics to build their power base and financial strength up, which resulted in the deaths of millions of Jews, Romani ("Gypsies"), Homosexuals, and many other "minorities".