The US government is not directly delivering either of those systems.
The US government is using public funds to subsidize private delivery, and doing it with virtually no cost controls to ensure those private companies aren't gouging the public.
The rest of the world has figured out how to make public healthcare and education work. The fact that the US can't is an indictment of US political leadership and, frankly, cultural values.
Education and healthcare are two examples of inherently social enterprises. Allowing profit-seeking firms into these spaces has caused nothing but trouble.
Having CEOs in charge of healthcare and education is as stupid of an idea as having government planners deciding the price of cars and how many cars each factory will produce per year.
Most enterprises are capitalistic, but some like education and healthcare are inherently social.
Across multiple countries, only the United States has this problem.