The switch represents an open collector somewhere in the distance... the wire may be long, and connections might be oxidised a bit making the open collector more resistive than is should be. This circuit cleans that up so that even such a "weak" open collector appears "strong" and "crisp."