Why do pirates have pirate captains?

Every ship requried an individual in charge, and the title for any ship's commander (regardless of actual rank) is Captain. Pirates needed an individual to led them and command the ship.