The chocolate has to be shipped cool, requiring more energy. That said: more and more producing countries are doing initial processing (roasting and grinding into liquor), and derivatives (powder and butter).
Processing cacao in North America means I have to pay to get rid of shell which could be brought back to farms. Hopefully one day I can buy good liquor.