There are good bacteria, and bad ones.Good ones typically are not fulminant, do not produce a pus or gas, and live in the gut and assist with digestion. The bad ones do several kinds of action, including produce a toxin, attack the body, and generate an immune response by waste products or protein coat, or by being otherwise noxious. Only 1 percent of bacteria cause disease in man, but of that 1 percent, some pretty severe diseases result.
We have managed to control their actions with antiseptics and antibiotics. They have adapted to this, and are changing with the times, making us have to research newer agents all the time.