I believe the answer is: They are based on the arbitrary borders of old European empires
African continent was colonized by different european empire. To avoid conflicts among the european, they divided africa into several territories and dtermine which country has the jurisdiction over each territories. After African nations gained independence, they still use this separation as borders to differentiate one country with another.