What if the value to someone is keeping people busy and thus not challenging the status quo? Or what if the job is useless to society but still makes some money?
In either case, I don't see anything special about these jobs that would make them the first to disappear in the face of UBI.