A properly sized A/C will remove between 5-6 gallons of excess moisture per day.
The hot air is blown over the cold evaporator coil. When the hot air is blown past these coils the moist air condenses onto the coils and is captured. That’s why your air conditioner has a drain line and drain pan for all the moisture that it captures.