There's entire books on developmental economics which explain how states create institutions that might appear to be rules based, but are ultimately just negotiation and favor. They get more money from developed countries and investors that don't look to deep, but ultimately the rate of growth is quite bad, because investing money in that kind of environment just has a poor rate of return.
All well described, with experimental numbers and everything, for countries in Africa and Latin America. Little did people realize that no, you can also apply this to developed countries when they suffer sufficient degradation.