Can bad gas cause fuel injectors to fail?

I’m surprised they didn’t change the cap and rotor when they did the wires.
Cap and rotor are generally supposed to be replaced more often than the wires.

It could be the compression test wasn’t done properly (throttle open?) or the gauge is off.