To limit the probability of inadequate fastening of roof framing members to the wall framing, which could lead to an inability to resist expected wind uplift loads, which could lead to the separation of roof framing from the wall framing.
This is to limit the probability of compromised structural integrity, which could lead to:
This is to limit the probability of harm to persons.