Then UBI is like life support for the braindead. The doctors might think they're doing good, but everyone knows that they're just delaying the inevitable. It's just another fiat-imposed misallocation of finite resources.
Also keep in mind that technology is inherently deflationary, so your hypothetical of people not being able to afford the basics for the value they're able to provide others might be unfounded.