They were sailors in search of a faster route to Asia.
There is a detailed examination of his case at this link
http://www.washingtonhistoryonline.org/leschi/
Ive not read all of it myself but would expect the answer to your question to be there.
Unfortunately the "quashing" of his sentence came far too late to save him from being hung