People were healthier when there were fewer of them around than thousands of years later.
Many illnesses are brought about by germs living in water. However, nature is very good at balancing out these germs, provided they occur in reasonably small numbers.
The first people lived in small scattered groups and so the amount of pollution that they could produce was small.