If they didn't abstain, China would likely respond with tariffs, costing Canada billions. They're also worried about the two Michaels, a couple of Canadians imprisoned in China that have been used as political pawns for the past few years.
Sometimes you can't have both principles and profit at the same time.