To limit the probability that foundations will settle under expected building loads, which could lead to foundations cracking, which could lead to damage to the foundation or the superstructure.
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.