Several responses confirmed that the shells were indeed gooseneck barnacles. These rare barnacles ... that these geese must develop attached to ships before emerging as feathered birds.
Then, when someone realised that the goose barnacle shell resembled the barnacle goose's head, they decided that the geese must grow attached to ships and then emerge as feathered birds.