if you're in the battle hall your pokemon will fight eachother. if you leave the battle hall on foot without calling the pokemon back into their balls, they will continue to fight, even after you've walked out of the battle hall.
recalling them or using the /faint command stops them.