Hindsight is 20/20 of course. I guess they wanted to prevent a 2nd USSR, and thought that stimulating capitalism would also stimulate democracy.
Because in the end, let's face it, the real problem is the CCP and not China itself. If China was a democratic country, the threat would be way smaller.