You might want to bone up on the theory of social contract. We don’t all write all the laws. But we do agree to obey them. Robin Hood was not a citizen of a representative republic; we are.
And I don’t recall the eighth commandment having any qualifications: Thou shalt not steal ... unless it’s from the rich.
Robin Hood was a thief. He may have been a thief with a heart of gold, but the law he broke was not the king’s; it was God’s.
The eighth commandment does not have any qualifications. But its not the only commandment. By your argument, for fear of breaking God's eight commandment, people have no recourse against others cheating them, ripping them off, oppressing and murdering them.