Why does the cat scratch the trunks of the plants and gnaw at their leaves?

Because it needs to reduce or sharpen its nails, or to trace its territory. In nature the cat would also feed on vegetables because in its guts is contained a precious substance, called folic acid.

 Cat Curiosity