Masashi Kishimoto said this quote

Then when I saw Pain attack Hinata, I was so mad, so full of rage, I let the Nine-Tails take over without even thinking about it.