Answer:
This is because of the static electricity which is generated in bodies due to friction. Time to time, the door knob gets touched by many people and the charge on it goes on increasing because of increasing friction. When the charge is increased much, after a considerable time, one may get a spark or a mild shock.