This is the first era that has the luxury of atheism. Life was too short, with widespread cruelty, and early death too pervasive in earlier times. Life would have been unbearable without a belief in the divine and in some overarching purpose.
(No, I'm not an atheist. But I have a secret admiration for principled [a.k.a. thinking and non contemptuous] atheists.)