Those were done by atheist rulers, but not in the name of atheism.
Atheism is way too nebulous a concept to be its own driver of atrocious conduct so the latter is straight up not a thing, and it doesn't need to be. Crimes committed by people in the name of ideologies which explicitly reject religion (something something "religion is the opium of the masses") are equally potent in refuting the idea that atheists are more moral than religious people. Otherwise, most hate crimes in America are not, in fact, explicitly committed in the name of Christianity; race is by far the most common motivator.