It's because when a move is used it does between a range of damage, for example:
252+ Atk Tough Claws Mega Charizard X Fire Punch vs. 252 HP / 0 Def Aegislash-Shield: 254-300 (78.3 - 92.5%) -- guaranteed 2HKO after Leftovers recovery
(254, 258, 260, 264, 266, 270, 272, 276, 278, 282, 284, 288, 290, 294, 296, 300)
↑ You see the numbers above? That's the range of damage the Mega Chaizard X in the calculation will inflict upon the Aegislash-Shield used in the calculation. (Aegislash's HP is maxed out at 364 for this calculation.)