im sure "excommunicate" is the AP's way to describe what happened and is not Baptist doctrinal practice.
Baptist congreations generally elect their pastors, BTW, through member votes. Maybe there's a different kind of politicking going on in this story.