Zucchini can become soggy if it is overcooked or if there is too much moisture during the cooking process. Overcooking zucchini leads to excessive release of its natural water content, resulting in a mushy texture. To avoid this, cook the zucchini just until tender but still slightly firm. Additionally, overcrowding the pan can trap moisture, preventing proper browning and resulting in soggy zucchini.