Why did Iran launch strikes on its allies' territory?

Iranian attacks hit targets in Syria, Iraq and Pakistan over two days. Why, and why now?

Why did Iran launch strikes on its allies' territory?
Iranian attacks hit targets in Syria, Iraq and Pakistan over two days. Why, and why now?