To hide his booty.
I'm not sure, but they both go out with shovels to find the booty.
For stealing the booty
They BURy it
The pirate says, "Argh!! I don't know but it's driving me testicles!!!"
So he could hide in the cherry tree !
Play hide and shell.
Thunderwear.
Because he didn't want to be mistaken for a WASP