They don't just make the numbers up. They have a reason for them. Either historical records, dated human remains, or by comparison to similar populations from other eras/locations where those exist.
I very much doubt that we have that kind of information available about prehistoric (say, Neantherthal) humans, except perhaps in very sparse and unreliable form.