Circuit design · Inputs: buttons, pull-ups, noise
An input on a cable will one day meet the wrong voltage, and one resistor decides whether the pin survives it.