Since eggplant naturally has a lot of water content, salting eggplant before cooking (by sprinkling salt over the cut eggplant and letting it sit for approximately 20 minutes) actually helps to draw out any excess moisture from the eggplant flesh. This ensures that the eggplant doesn't get overly soggy once it's cooked.