Spinach leaves are typically very moist naturally. So it tends to leave the water if it's cooked for long. So it is better to remove them from heat once the leaves start to wilt and turn bright green.