According to The New York Times, the ban was imposed so that Russia and China could not use the chips for military purposes.
Both companies suspended the supply of products to Russia at the beginning of the year, but they continued to work with China. NVIDIA representatives announced the risk of losing $400 million if their company does not get permission to sell chips to China. At the same time, AMD representatives believe that the restriction will not affect earnings too much.