Synthesis from chemicals in organisms is fundamentally different from laboratory synthesis of chemicals. In the latter, more than one chemical species or other unwanted byproducts are usually formed, whist living organisms use enzymes, that are often stereo-specific. This means that they usually can bind, in the case, produce, only one stereo-isomer.
To produce both forms they would need double sets of enzymes.
It makes sense for animals, bacteria, protozoa, etc. to digest whatever comes, so less specific enzyme, but since plants will only access the glucose they themselves formed use of a stereo-specific enzymatic pathway probably enables a more efficient metabolism.