A plant has to produce carbohydrates because
A plant needs to produce carbohydrates for structure, energy storage, function and also energy.
Carbohydrates are used for energy in the plant. read more at: hyperphysics.phy-astr.gsu.edu/hbase/organic/carb.htm