Because when the shadow of the moon hits the earth for eclipse, it's only a small shadow that covers a little zone of the earth and lasts a brief moment.
When the earth shadow passes on the moon, it lasts a lot longer and it's a bigger shadow. TheThey measured the time 22002250 years ago and found the earth is 3.5 times bigger than the moon: