In domains like healthcare, education and transportation, the cost is primarily labour. A wealthier country pays its workers more, which gets passed down in higher prices to its consumers. And, while healthcare and education do not benefit from economies of scale, transportation does, so the denser population gets cheaper transportation per capita.