If you’ve worked with microcontrollers or digital logic ... Throwing a capacitor in there adds a little reservoir of current, just waiting to fill in when the power rail dips.