Why Nations Fail
To summarize, the main reason is "extractive institutions" (corruption by scoundrels running the country) and lack of "inclusive institutions."
The ruling oligarchies fear a new entrepreneurial class, so they do everything they can to inhibit innovation. Without creative destruction (a term coined or popularized by the economist Schumpeter describing the replacement of old businesses with new,) a nation's economy is doomed to become less competitive.