Please check the attached picture
Capacitors function is to store up electricity and release it when the current is flowing. When there is no current, Capacitors still have electricity stored in them and can be discharged accidentally if something conductive touches them.