They do get cancer. however plants and animals have a essentially totally different strategy to living and reproducing, thus it doesn’t matter the maximum amount to plants.
Plants go down a route of moving (changing) terribly slowly, and spawning multiple redundant components of themselves. If a limb gets cancer (which will happen) then that branch may die, however the tree is okay. Plants play an extended game.