So not necessarily an anti-deity statement, but more an acknowledgement that the Church is a system by which European rulers reinforce their power and wealth.
He was basically just channeling Seneca, who wrote this circa 65 CE (in his Letters from a Stoic, which are a great read)
Religion is regarded by the common people as true, by the wise as false, and by rulers as useful.