Wanda was right outside the city and her army was faster. If the Queen ran they probably would have caught her the next turn. Rather than die and become magical slaves the Queen decided to destroy herself and the remainder of her army. Can't fault her logic there.