Draining the tofu before cooking allows the tofu to be coated and pan-fried easier with minimal splatter. The more water that is drained from the tofu the easier it is for the tofu to absorb more flavor and get crispier when you fry it.