Have an industrial revolution -> get rich enough to care about science -> realize we should track the environment -> start to take measurements and writing them down.
The only other path that leads to environmental tracking is if some order of monks developed an obscure interest in it in pre-industrial times.