Here's the scene. Jack and Angelica are in the captain's quarters on Black Beard's ship. They're both looking at a shelf full of bottles that have ships inside them. One of them contains Jack's ship named Black Pearl
Jack asks "Why is the Black Pearl in a bottle?"
Why does he say a bottle? It's quite clear for both of them which specific bottle the ship is in because they're looking at it when asks the question.