I think Anakin was captured to confirm that Dooku was on board... but that's stupid, they should've showed him being captured at least so that it would make sense. Being captured without his lightsaber is less convincing, I should think.
Also, I think the head pirate was voiced by the Head Guard from Aladdin.