Lobbying and political activity are easily confused
Lobbying means that the organization is trying to influence legislation; political activity refers to partisan campaigning or nonpartisan voter involvement. Public charities are allowed to lobby but, like most nonprofits, they can lose their tax-exempt status if they engage in political campaigns and electioneering. The IRS has set strict guidelines for public charities and other tax-exempt organizations and expects each of them to pay close attention to these regulations.
View more here