They treat Taiwan that way because the Chinese civil war was never fully resolved. The US interfered to prevent the communists from taking Taiwan and ousting Chiang Kai-shek’s fascist KMT. As such, the CPC sees persistent US support for Taiwanese independence as an implicit threat against their sovereignty.