UBI toss those programs away saying hand people money and let the free market allocate resources. Hypothetically you hand money to everyone, but as far as the middle class is concerned there is zero difference to lower tax brackets for the first 10,000$/year of income vs 1 tax bracket + a lump sum. So estimates of how expensive UBI would be really come down to how many subsidies you remove.
Further if you believe in free markets then UBI should actually be cheaper for the same social benefit.