Capacitor use in H-Bridge circuit
Digital ICs often consume current in short but relatively strong pulses as they switch. These capacitors act as local power sources that can supply these pulses. Without them, power supply voltage would sag momentarily, which may upset the operation of the IC or its neighbours.