Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
When Pokemon take damage and lose a percentage of health, the opposing Pokemon heals the same percentage of health. When Pokemon heal a percentage of its health, the opposing Pokemon loses the same percentage of health.