At the time there was no Suez canal. Going from europe to China by sea would mean go around Africa which was a challenge by itself.
Although there was a Suez canal at various times in antiquity, albeit one between the Red Sea and the Nile, not the Mediterranean directly.