Why does a capacitor allow alternating current to pass but not direct current?

 

v20240901