the only reason Raikage went off to get healed was because Gaara intervened. He would have continued to fight had they not. When Sasuke ran away and had to fight the mizukage, Zetsu intervened on sasuke's behalf and gave him the chakra he had absorbed.
You must be registered for see links
Then Madara saved him from the Tsuchikage's attacks.
You must be registered for see links
When the Mizukage and the Tsuchikage attacked, it was because Sasuke had been branded an official wanted nin and a enemy to all villages.