How can a capacitor in a disposable camera shock you?
Photoflash capacitors are charged to hundreds of volts using various methods (flyback transformer, etc). Don't assume that because the input is a AA battery that there are no greater potentials within the circuit.

The example below was taken from a Texas Instruments application note. This circuit is battery powered yet charges a capacitor to 300V.