It should also be noted that units gain experience if they kill enemy units and even for hitting them in combat. That's on top of the experience you get from participating in battle and you also get a point or two extra if you win.
There was a fairly comprehensive explanation somewhere around here from either JK, KO or JO.