Rather than thinking of it as demand for dollars, you could think of it as demand for US investments in general. The US is one of the better places in the world to invest. Why foreigners want to buy US tech stocks (for example) shouldn’t be a mystery.