Why doesn't Africa have more farms and infrastructure?
Long answer: Western colonialism.
How do you explain lack of farming / infrastructure prior to colonialism? More or less all environments populated by sub saharans struggle with infrastructure. This is true before, during, and after colonialism.
Why doesn't Africa have more farms and infrastructure?