An apartment I lived in(CA)was like that. One minute nothing, a little while later hundreds of ants in a line, either in the kitchen or bathroom. One time I killed a whole bunch but didn’t have time to clean-up the carnage as I was off to work. When I got home they were all gone.
After a period of time, they are able to figure it out and re-establish the trail.