There's often a crucial difference in the nature of "revenue": With nonprofits it's often a voluntary contribution ("donation"). Or non profits can rightly claim that the contribution is of a capital nature in which case it's equivalent to an equity raise for a business (share issue even though the shares will never pay dividends).
Donations and equity raises are not taxable income.