I see several possibilities for Robin Hood:
1. He was what the legend said he was; a tax rebel.
2. He was a common bandit who kept most of what he stole and bought off the locals so they wouldn’t turn him in.
3. He was an invention by the peasants who wished to have such a hero.
4. He was invented by the local officials to have someone to blame a “robbery” on so they could pocket some cash for themselves.
The various candidates for the supposedly historical Robin Hood have only tenuous documentation (or non-existent) and lived over a period of two or three centuries. He’s probably a literary invention, which isn’t to say that there were no rural gangs of outlaw robbers operating in medieval England. :’) If there hadn’t been, poof, no Magna Carta. ;’)