There was no attack on religion because people were generally indifferent to religion. They were neither hot nor cold. They were the tepid, the materialistic, who hoped that by Sunday churchgoing they would be taking care of the afterlife, if there were an afterlife. Meanwhile they would get everything they could in this.