what was once a field or pasture or grazing land or just unclaimed land, the building process has upset the insects around the area and they are seeking shelter. your home is much better than that old rotten log that might have been their home before. Be glad its not scorpions.
I would address the foundation on the inside and outside and call out a pest control company and it should settle down with some time. Do the ants have wings?