President Obama says he chose Ghana partly because of the country's commitment to democracy.