I think that the way that this occurs is by having a stack with multiple units (one of them being the emplaced cannons unit) attacked. Regardless, somehow I've been able to move several of these units (and I've captured a couple of AI controlled Union elements that have obviously moved as well).
Really, I don't think that they should even be able to move out of the structure that their emplaced in, let alone move to a different region...