I would agree with you, if we taxed the ever-living fuck out of AI companies to enable UBI, so that the people replaced with robots did not end up homeless.
Well, first these AI companies would have to turn a profit.
Ideologically I don't consider myself to be a communist or even leftist, so I'm confused by my own reaction as well, but maybe mandatory joint-stock where the government takes a large chunk of equity of any AI enterprise off the bat and manages it like a sovereign wealth fund is the right answer.
No thanks. The last thing I want is the government with even more motivation to shove AI into everything in order to make it "profitable".