It prevents the entry of water vapor and reduces the risk of condensation, which helps to protect the building from moisture-related damage.