it happens in a lot of places. it was happening when i was killing guards in varrock
it happens when a piece of a wall, building, whatever is in front of the loot or enemy on your screen, it tries to click where the thing would be if that wall wasnt there, but it's just got the mouse over a wall. when i manually turn the camera so that it can see that thing, it will move the mouse to it and continue on.