because he no longer has to be concerned about another election in his second and last term. It's typical for Americans to dial up the anti-China rhetoric during election years because the US public hates Chinese people and that's an easy way to increase popularity.
You can't compare the present time with earlier in the history of US-China relations. China has never been so powerful since the early Qing Dynasty, before the US even existed as an independent country.