That's kind of the point. Assange wasn't acting on behalf of his country. If he was, there'd be much less of an issue.
I think it's a miscarriage of justice that Assange is just sitting in jail. At the same time, his defenders don't admit that he solicited and provided technical assistance to Americans who expressed interest in stealing secrets. Plus he's almost certainly a creep. The condom-removal allegations are very likely true. While not relevant to his crimes, this makes him much less sympathetic.