Some assets may perform poorly under certain conditions, but there may also be other assets that perform outstandingly under the same conditions, thus compensating for losses to some extent. This is the concept of risk diversification emphasized in asset allocation. In simple terms, it means not to put all your eggs in one basket.
Although this approach cannot completely avoid capital losses, it is widely regarded as a strategy to enhance the potential returns of an overall investment portfolio while controlling risk.