Much of the worst evil in history has been committed in service to a hypothetical greater good, or in retribution against very real wrongs. Germany had serious grievances in their treatment after WWI, for example. Communism, including Stalinism and Maoism, was a response against an extremely unjust social and economic order. Just because you've been wronged and victimized doesn't give you free reign to commit wrongs yourself.