Why was it originally thought that bacteria could not be the cause of stomach ulcers?

The severe acidity of the stomach was thought to be too extreme for bacteria to survive.