Why doesn't jam decay due to bacterial action?

The high concentration of sugar in jams keeps most bacteria from reproducing by dehydrating them.