Americans pay more for worse outcomes, so this is clearly a political/priorities issue, not an issue with wealth.
Other counterexamples are the other European countries with the same safety net which are not petro states (they do have colonial wealth though).
A lot of this was possible because of high corporate taxes and high marginal taxes on high incomes, so in theory this model could apply in most places.