The Little Ship In The Bottle

I wondered how it got in there
For the opening was too small,
The little ship in the bottle,
Had tiny sails and masts too tall.
It was a pretty piece of art,
Its maker was obviously good,
The sails were made with cloth and string,
The ship was finely carved from wood.
Now how did he enclose it there,
Assembled slowly bit by bit?
Or did he use a magic spell,
To make the little galleon fit?