It's not a matter of banning political speech, at least according to the article:  

"The tax code does allow a wide range of political activity by houses of worship, including speaking out on social issues and organizing congregants to vote. But churches cannot endorse a candidate or engage in partisan advocacy."

It seems to be a rule designed to strengthen the separation of church and state.