Before the first Robin Hood ballad there were a group of socialist rebels in England which wore dresses and called themselves servants to the Queen of the Fairies.
Hundreds of years before in Southern France a man was possessed by fairies and made to rob from the rich to give to the poor.
See the fairies often called on people throughout Europe to Rob from the Rich and Give to the poor. To rebel against the nobility.
Gender Bending was a common feature of shamans, servants of the fairies, in large part because a person who served The Fairy Queen, for example, would be possessed by her.
You can learn more about this:
Analyzing and Interpreting Fairy Tales
Secrets of the Forgotten Goddesses