Most restaurants get pressurized tanks of straight flavored syrup, and have a system that blends the syrup with carbonated water as it is being dispensed. If the system isn't cleaned, or the water-to-syrup ratio is wrong, the flavor will be affected.