Gross Domestic Product is measuring *domestic* output, so adjusting for *domestic* pricing makes sense.
Measuring it in a foreign currency doesn’t without accounting for that is just answering “how many iphones can country X afford” (handwaving away the nuances of what GDP measures with “afford”) which might be a statistic you care about but probably isn’t (and isn’t for the point that was being made).