Codes wish to make sure that the welding procedure produces mechanical properties equal to the minimum tensile properties of the base metal and provide minimum ductility (bend tests) approximately equal to that of the base metal.
It is also somewhat more difficult to make shear tests and shear properties are a function of tensile/yield properties anyway. Engineers need to design the item with regard to shear, fatigue, stress corrosion cracking service, etc.