The gas production company I worked for (Messer) made CO2 as a byproduct of producing acetylene, but that was in no way sufficient for all CO2 demand, particularly welding gasses, so it was also made on another line specifically by basically burning gas.