Why did the Maroons of Jamaica sign treaties that obligated them to return runaway slaves?

by theshadypineapple

Given that the Leeward and Windward Treaties that led to the end of the First Maroon War obligated the Maroons to return runaway slaves to their plantations, it's left me massively confused.

Many of the sources I've read simply mention the contents of the treaties without acknowledging how strange it seems, and furthermore the gist of what came beforehand was "the Maroons kicked English ass". For them to abandon such a strong position and effectively become party to a practice they'd been victims of is pretty bonkers, was wondering if someone who's done more reading on the subject knows more about the ins and outs?

voyeur324

/u/tjcase10 has written about maroons in Jamaica before and after 1739.