I think you should read a lot of books and documents that you will understand the problem. The economy of a country is determined by history and geography. a country without war, favorable geographical position will grow rich. The poor countries are the opposite. Another issue is the leadership of the country