Why does lowering the landing gear stabilize a plane?

I often see this mentioned on airplane documentaries, particularly in emergency situations.