To limit the probability of insufficient penetration, which could lead to nail pull-out, which could lead to inadequate joint strength, which could lead to an inability to resist expected vertical or lateral loads, which could lead to fastened elements detaching from supporting members.
Where assemblies are required to provide fire resistance, this is to limit the probability of compromised fire resistance of the assembly, which could lead to harm to persons.