>>14378742People, over the past 10+ years have sussed out the exact formula for how pokemon's stats are constructed. They can use these formulas to extrapolate what a pokemon's natural minimum, maximum, and average stat spreads would be without EVs, IVs, or Natures obscuring the final total.
tl;dr: Maths