The main reason for having ants on the wooden table could be nest building.  Carpenter ants have a tendency to target moist or waterlogged wood since it is easier for them to chew through.