They aren't invisible, they're just clipping underneath the ground so that they can't be attacked, and maybe so it's a little less immediately obvious that they're warping around from location to location.

FFXI veterans might remember HELM (gatherer) bots doing the exact same thing with gathering points, particularly hiding under the ground in Grauberg so that the chigoes wouldn't eat them.