The ant's speed is not explicitly measured relative to its distance from A. It is left unspecified what it is relative to, but the implication of "walking speed" (well, crawling speed, I guess) is that it is relative to the point of ground you are on.
In that case, the ant is only moving at a fixed speed, toward the other end (100,000 times slower than the end's expansion), which will forever be too far away.