Diversity factors are used to account for the fact that not all loads in a building are operating at their peak capacity simultaneously. By applying diversity factors, engineers can estimate the actual cooling load required to maintain a comfortable indoor environment, rather than designing for the theoretical maximum load. This approach helps to avoid oversizing HVAC systems, which can lead to energy waste and increased capital costs.