If everyone is on universal basic income…. Where would the money come from? Who will do the work? Wouldn’t that be extremely inflationary?
Inflation is a whole other story, but it's controlled by the federal reserve. Generally the goal of the Fed is to keep unemployment low and prevent recessions. Inflation is a tool. Economy isn't about gold or cash or value of that cash; it's about GDP and political stability. When inflation increases, people spend money rather than storing it, fueling more growth. When growth is healthy, they bring inflation back down to close to 0%. So the Fed can stimulate the economy by printing more money. Inflation hurts, but it's all on purpose, a stick that predictably move the donkeys.
UBI... makes the concept of unemployment weird, but it serves the purpose of making things more stable.