When Daenerys arrived at Astapor with three dragons, everyone got surprised because the dragons were extinct. At that point, they were priceless. So Krazyns agreed to trade the Unsullied for dragons because he knew he was getting an excellent deal.