In Battlefield 3, you sometimes earn kit experience while in a vehicle because of how the game attributes your actions. When you or another player get kills, the credit can go toward your kits or the vehicle you're driving.
For example, if you're piloting a chopper and rack up kills, you may earn things like heat seekers. So the experience you gain is tied to both your loadout and the vehicle you're operating at the time.