Before 1971 most countries, including the US, had to run on budgets there were balanced often leading to a surplus. You can see a graph for the US here. [1] So what happened in 1971? [2] 1971 is when Bretton Woods ended and when all currencies became completely free floating, enabling governments to 'print money' at their discretion.
Prior to 1971 most currencies were backed, in one way or another, by finite resources - generally gold. So governments couldn't just print a trillion dollars into existence and devalue everybody's money in the process. Consequently our current economic system is an experiment that began in 1971. I think it's increasingly obvious that it's not going to stand the test of time. And if not, it will be one of the shortest lived widely deployed economic experiments of all time. It just seems funny because for many of us, this system is all we've ever known, so your question is 100% reasonable.
1971 is around the time significant amounts government expenses became various forms of transfer payments.