What you really need to visualize is that a photovoltaic solar cell isn't just random silicon - it's a structure with two layers that have different electrical properties. When a photon hits the silicon, it frees an electron, okay, but it's the electric field that already exists between the two layers that forces that electron to move in a specific direction. Without this asymmetry, the electron would just escape as heat. It's like if you had a natural slope that guides water trickling down - the rain (the photon) dislodges the water (the electron), but it's the slope (the electric field) that makes it flow somewhere useful.
Basically, the freed electrons all head toward the same side of the cell, which creates a potential difference - a voltage. And if you connect a circuit between the two sides, electrons flow through your device before coming back to complete the loop. The more photons, the more electrons get freed, the more current you have. That's why panels produce more on sunny days than cloudy ones, and why orientation matters.
The trap to avoid: thinking that a single photon is enough to create sustained current. It's true that one photon frees one electron, but what really matters is the constant cascade of millions of photons hitting every second and maintaining that continuous flow. On its own, it's nothing.