I think for many countries it's more "they would if they could" and it's lack of resources that means that a lower standard of medical care is provided. But American healthcare is unique amongst 1st world countries.
Though tbf in the UK the NHS has been allowed to fester with overpaid middle management and corrupt supply chains designed to siphon money off wherever possible, it's something that the government needs to address very badly.
Because public healthcare _always_ works, it's when private businesses (supply chains, agencies, contractors, etc) get involved that things get expensive for the taxpayer.