MORALITY IS RELATIVE NOT ABSOLUTE:
Morality is not absolute, the many versions of human morality are all human creations with the most widespread ones based in the evolution of human social nature, and the more extreme variants based in individual psychological history and/or philosophical investigation. Moral judgments are always relative to some basic assumed set of values which may or may not be explicitly recognized. There is no absolute morality though we certainly can draw moral lessons from the design of nature. This is easily seen in the many conflicting moral systems of different cultures and diverse individuals. In general systems of morality are cultural impositions on natural human behavior which seek to codify and regulate human actions and thus morality is closely related to legal systems.
That being said we also see the origins of human moral systems in the morality of other species as evidenced in their systems of social interactions, of which human morality is a codification.
In turn morality is often modified by expediency and perceived benefit and what is considered moral can often be stretched when circumstances are thought to dictate such actions. People very often act in ways they condemn in their stated moral belief systems. Such hypocrisy often however has the additional component when the cognitive subroutines which determine action are not tightly coupled to and monitored by those which formulate moral standards which is quite often the case. In such cases morality is simply not applied to the action in question which thus becomes immune from moral oversight.
Hitler and the Nazis clearly believed it was moral to attempt to eradicate the Jews. Widespread deliberate policies are almost always justified on moral grounds by their perpetrators. Though I certainly find it morally reprehensible, there is no absolute morality on the basis of which we can say it was clearly wrong to attempt to eradicate the Jews. We must simply recognize that morality is always relative to the current cultural beliefs of a society, and thus is always temporary and subject to change. In the contemporary western moral view of this particular time and place the Nazi's actions relative to the Jews is widely considered to be absolutely wrong, but that cannot be the case since a whole country would not act in a way they themselves considered immoral. Rather, they would as usual redefine morality on their own terms to justify their actions. Western societies of course do this too.
Likewise many in the West consider the Taliban's harsh version of Sharia law immoral even though the Taliban are convinced it is strictly moral and the western way of life is immoral. There is no absolute right or wrong here and one has to be very cautious about arbitrarily trying to impose one moral system on another people. That is simply moral imperialism, though that happens throughout history and can be seen in historical terms as part of the inevitable evolutionary clash of cultures.
Everyone is almost always convinced it is their morality which is right and that any opposing system is immoral and its adherents evil. Such beliefs are often so strong that people are willing to fight and die to impose their own moral systems on other peoples, actions which nearly always impose more suffering on the loser than any dysfunctionality their own system might have entailed, at least in the short term.