The enemy's behaviour is naturally looped moving along a repeated path left to right.
Casting the "loop spell" actually seems to break that loop and lock the monster into a single state.
Maybe this was meant to be interpreted as creating a logical infinite loop? But this would not be understood by average gamers.