UBI is generally thought of as a solution to rising AI. The taxes would come from the corporations generating income from AI and redistributed towards the people, in a sort of "fake" market economy, because the alternative is that the rich own all assets and their economy grinds to a halt because consumers don't have money to buy the corporations' goods anymore, which also causes the corporations to fail too.