Because China is ahead of USA in this area of science so the US is leveraging Chinese expertise here. The same does not happen the other way around where US advantages in potential military technology is strictly controlled. That is unless of course you believe rumors and other unconfirmed reports from dubious sources that propagate American right-wing media.
China's offer to the USA, if they win the proposed high-speed railway between Los Angeles and San Francisco, is full technology transfer for American technology absorption and eventual domestic construction content. What gains are to be had in this arrangement besides goodwill? This goodwill is also a dubious rationale considering most Americans see this offer as mercantilist capitalism to take advantage of American technology weakness in this field. I find this to be a totally one-sided affair.We can't honestly be as stupid as to give away tech with something in return...