All plants contain sugar - that’s what photosynthesis is, turing CO2 into sugars. It might be a miniscule amount, but there is definitely sugar in there.
Also, meat doesn’t contain sugar, but I’m sure you don’t leave your raw chicken out to let the sun cook it. Once again, the equation is not sugar+bacteria, it’s…