Economic growth caused these things to go up; the governments (which also existed in past periods of human existence) caused growth to be much slower than it could have been.
Don’t confuse government causing a increase in government spending on something with causing an increase in the actual supply of that thing. When governments restrict the supply of healthcare and housing (which they do, through professional licensing and zoning regulations), they can spend more on them without increasing supply.
Don’t confuse government causing a increase in government spending on something with causing an increase in the actual supply of that thing. When governments restrict the supply of healthcare and housing (which they do, through professional licensing and zoning regulations), they can spend more on them without increasing supply.