If you have a full cargo hold it deducts that from the price of the ship. Although you need to empty your hold now before you can buy a ship. Bit of a pointless and misleading way to do pricing. If you have to empty your cargo before you can buy the price of the ship goes up again.