Well, I think the previous reply from SeanB explain exactly what you want. Let's try to clarify this.
Based on this topic :
http://mjlorton.com/forum/index.php?topic=68.0 wich is the simplest mppt system I could find. We should have a look at the schematic :

the relevant part here is only the basic part of the buck converter : C2, Q2, Q3, L1, C3
as you said, you already understood how the buck converter works. Q2 closes, C3 and L1 are charging. Q2 opens, Q3 closes, L1 discharge into C3. Then Q3 opens, Q2 closes, L1 is charging, etc etc.
C2 is here to average the current flowing from the solar panel to L1.
The PWM ratio that controls Q2/Q3 is controlling this average solar panel current.
As we have seen, C3 is charged by the converter. But C3 is also directly connected to the output of the system, and viewed from the output, it acts as a battery, that provide current to the load.
If the PWM ratio is set to get 1A and 20V at solar input, we get 20W input. So we charge 20W in the C3 capacitor.
If at the output the load is imposing 10V, the current drawn from C3 will be 2A. So you also get 20W at the output.
What you need to understand here is when you charge a battery, it's the battery that determines the voltage at the output. The current is just the result of the available power, drawn at the voltage the battery "wants".
So what allow the current to be different between the input and the output of the buck converter is because C3 acts as a storage. So you can consider C3 alone (regardless of the converter) as a power source that provides fixed power to the load.
So the current at output is the current the load ask when powered with the amount of power available.
the current at the input is the current that charges L1, not C3.
the current at the output is the current that discharges C3, not L1.
Well, I'm not sure it will really be clearer now... at least I tried
