When a battery charges a capacitor, it generates charge through electrochemical reactions, providing energy to move electrons rather than directly supplying charge. The battery creates a potential difference that drives electrons to accumulate on one capacitor plate, inducing an opposite charge on the other plate. While the battery facilitates the movement of charges, it does not "squirt out" electrons; instead, it pushes positive charges from its positive terminal and negative charges from its negative terminal. The process adheres to the principle of charge conservation, where for every negative charge created, a corresponding positive charge is also generated. Ultimately, the interaction between batteries and capacitors is governed by electrochemical principles and charge dynamics.