It has more to do with the US's ability to reliably tax its own citizens. Plenty of small countries also have stable currencies, but only the ones with stable governments.
Yes, that is another factor, and shouldn't be underestimated. Government-issued currency exists the moment the government decides it will be accepted for payment of taxes.