This is because the turgidity of the leaf cells keeps the leaf straight and extended. If a plant is uprooted, the leaves continue losing water by transpiration, but there is no chance for absorbing water through the roots. This does not allow the compensation for the loss of water by transpiration; hence the leaves of the uprooted plant wilt soon.