If welfare didn't exist, corporations would be forced to pay those wages directly.
UBI solves all these issues nicely. People get to spend the money in the way that works best for them. Because they aren't 100% tied to the corporations, the worst, lowest paying jobs gain leverage when negotiating.
While not the best solution, it is far better than current welfare. Even Milton Friedman supported UBI in this context.