Yes, taxing charities seems kind of unproductive, unless you assume that the government could provide the same service cheaper or better. But religion's functions are not 100% charities so they shouldn't be 100% tax free.