When Jane, using the threat of violence, demands a portion of Rick's income, Jane is called an extortionist and a thief.
When a group of men acting in association, calling themselves government, does the same thing Jane just did, it is not only considered moral. It is glorified.
When John goes out and kills 30 people, he is called a serial killer, and is considered the scum of the earth.
When government does the same thing and calls it war, they aren't lambasted. They are praised, thanked, and paid tribute to.
What is immoral for an individual to do is equally immoral for a group of individuals, regardless of the size of the group, and despite what they call themselves.