This is an idiom that means the people do not even want to think about God. They want to avoid him. Alternate translation: "They have all turned away from God" (See: [[rc://en/ta/man/translate/figs-idiom]])
Since no one does what is good, they are useless to God. Alternate translation: "Everyone has become useless to God" (See: [[rc://en/ta/man/translate/figs-explicit]])