Your electrical panel distributes electricity throughout your home. The circuit breakers in the electrical panel can also cut off the flow of current to an electrical circuit in case a fault or surge occurs to prevent overload in electrical lines that can cause damage.
While your solar panels generate electricity, they typically aren’t connected directly to your appliances or other electronic devices.
In terms of understanding how do solar panels work, they provide electricity to the electrical panel, and your electrical panel separates that home solar power into individual circuits that run to everything in the house.