Tofu is mostly water. When you cook it, that water comes out, and the tofu can get mushy. Pressing the tofu before cooking helps prevent this.