Header tubes are generally welded to the flanges on the motor side, then surface ground so the welds are what actually seal to the heads with the header gaskets. The few tack welds on the outside are most likely to hold the flange in the proper location while the tubes are positioned on a jig for proper angles.