When a church-sponsored organization provides "social services," that's good religion. When the church in question forbids abortion, contraception, and sterilization, that's bad religion. But we don't want to discriminate between types of religiosity. So we just say that church-sponsored organizations that do both good religion and bad religion aren't religious.
Simple, isn't it? But if you want to understand the contradiction thus resolved, go here.