A new feature of Exp. Share is that ALL your Pokemon receive experience, with the Pokemon who actually participated in the battle earning slightly more. However, you must enable the "Exp. Share" option to have it work and ensure all your Pokemon evenly level up. You can activate it and deactivate it by selecting it in your inventory.