You're confusing atheism for a religion.
Those murders were conducted by oppressive governments with a specific agenda, that didn't come from some atheist scripture.
> What you’re describing is a people problem, not a religion problem.
It's a problem of organized groups of people motivated by a collective ideology. This is manifested primarily by religions, since most religious texts have some passages that reject foreign groups, or outright invite acts of violence against them[1,2].
[1]: https://www.openbible.info/topics/killing_non_believers
[2]: https://www.thereligionofpeace.com/pages/quran/violence.aspx