The Chinese (particularly the Chinese central bank) were buying US government debts. That led to lower safe borrowing rates, making the creation of safe assets much more lucrative. That gradually forced banks to get involved with riskier parts of the financial sector. They had to start buying riskier assets than they had in the past.
In other words, the subprime boom happened because eventually, the rising demand for creating safe assets by banks led to providing loans to more risky clients. Banks exhausted the creditworthy market and had to go into the subprime sector.
-jk-