For China Huawei’s trade with any country is meaningless from an economic standpoint. It’s in no way worth the kind of political capital their spending on it’s defense.
They either care for intelligence gathering or political reasons. Politically it could be anything from ideology to corruption and backroom politics. But, again the economic angle is hardly worth the effort when their risking a major backlash.