Starting cucumber seeds indoors can help avoid legginess because you can control the growing conditions more easily. Outdoors, seedlings may become leggy due to insufficient light, temperature fluctuations, and other environmental factors.