They were expensive because they were rare in the west. They were rare, because the ways to bring them were a very long, dangerous and otherwise expensive trade routes, either through central Asia or through the Indian and Arabic peninsula coast, and later (after Vasco da Gama) around Africa.