In Pirates of a Caribbean 2+3 because is a British sovereignty portrayed as a antagonists?

In Pirates of the Caribbean 2+3 given is the British government portrayed as the antagonists. They should be good given they have been stealing excluded of piracy.

468