If this story were not told as a romantic poem, the highwayman and (to a lesser extent) Bess would be the "bad" guys, while Tim and the redcoats would be the "good" guys. Why do you think the author chose to make the villain into the hero of the poem?
The poem is called The Highwayman