Because when the Federal Reserve buys those treasuries, you're creating money out of thin air (QE).
Surely some of the inflation and really low unemployment is due to QE. But it's likely a lot more of it is due to an economy growing while the active workforce is shrinking and external factors like the pandemic and war in Ukraine causing supply issues.