If you read the book or watch the movie starring Errol Flynn, Prince John and the Sheriff of Nottingham were the bad guys because they over-taxed the peasants. Robin Hood was the good guy because he rescued the money from the tax collectors and returned it to the people who earned it.
Source