Because the GFI is comparing the currents flowing in the hot and neutral. When you short the neutral to the ground, some of that current goes to the ground instead of the neutral, so the current in the hot and neutral becomes unequal.
The next logical question would be "But what if there is no load, so no neutral current?" The GFI will still trip, because it constantly injects a small test current itself to detect that situation.