To me, it seems all the communist dictators did (Stalin, Mao, the Kim family) was replace conventional religion with their own cult of personality (i.e. god-like worship of a living person and their views, which even has a name in North Korea)
So…people in those countries weren’t killed in the name of atheism per sae, but for not following the official personality cult and all its derivatives.