Countries don't mechanically convert inputs into development. There are many examples of countries with large capital inflows and/or strong capabilities that still fail to become strong economies. Corruption is one of the major frictions that prevents those resources from translating into broad economic success.