Most people hold a similar view as you. i.e. "Why is X wrong when people do it, but not when government/government employee does it". However, we anarcho-capitalists, who examine the basis of government in terms universal moral principles, apply this critique to everything a government does.
Your singular question is one of many. And I urge you to explore such questions further, as far as you're comfortable questioning. You'll find that much of what government does is logically inconsistent, even with its own set of defined "morals".
Outside the US, NSA operates with the diplomatic and military support of the US. It's not a matter of an individual hacker, but "an international incident" should something arise. There's some risk that an agent or operative (non-agency employee acting on behalf of the NSA) could be caught, but that would vary by field of operations and relations between that country and the US.
Nothing is happening because the NSA and most representatives are PARTNERS in this crime. You must contact your representative and let him know that you are ready to do anything in order for him not to be reelected if he won't actively ask for justice.