The phrase
"pirate ship" refers to a type of boat that is used by pirates. Pirates were people who sailed the seas and engaged in illegal activities, such as stealing from other ships. So, a
pirate ship is a ship that pirates used for their unlawful actions.
Full definition