One of the governments primary jobs is protecting you from aggressors. You may not agree with the method a government uses but that doesn't change it's job description. So when they come for the terrorist they are pursuing a legitimate governmental role.
When they come for the whistleblower and illegal alien it becomes debatable whether they are pursuing a legitimate governmental role. It's very definitely an apples to oranges comparison there.