You put 0-ohms where you think you might at some point want to have something else there like a > 0 ohm resistor or an inductor (for EMI blocking for example), it's much easier to just reprogram the SMD robot than to make a new PCB.
That's accurate, but given the lack of words to the effect of "You can also put", it deserves the clarification that the most common something else is - as the parent suggested - a ∞-ohm resistor, either as a specific component or more commonly in the form of the absense of a component.