Hi! Someone asked a question quite similar to this a few years ago:
https://www.reddit.com/r/AskHistorians/comments/7b0el0/how_did_people_become_pirates/
A really cool person gave a far better response than I would have! Hope this helps!