 By doing this, the ship was able to get within firing range, and with the element of surprise on his side, the captain would only then hoist his actual flag and show his true colours before firing on the enemy.