Because Taiwan is a very valuble small peice of land.
Microchip manufacturing facilities there are going to be important in the near future with the worlds increasing dependance on computing power & electronics manufacturing.
If Taiwan was just another pocket of rural china then the CCP wouldnt give anywhere much of a shit… but they still probably wouldnt like it “getting away”.