Why does Gulliver agree to swear an oath to Lilliput?

A.
He wants to become a Lilliputian.

B.
He wants the Lilliputians to set him free.

C.
He wants to rule over the Lilliputians.

D.
He wants to trick the Lilliputians into trusting him.