What explains the glorification/romanticization of pirates in literature?

by [deleted]
davidAOP

Do you mean who caused the glorification/romanticizing or are you asking why did they romanticize it?