To limit the probability of inadequate protection, which could lead to beam ends being exposed to water from rain or melting snow, which could lead to rotting or corrosion of the ends of beams.
This is to limit the probability of:
For floors and elements supporting floors, this is to limit the probability of excessive deflection, which could lead to persons tripping or falling, which could lead to harm to persons.