Thread:Chix777/@comment-25152698-20140816004524/@comment-25152698-20140816014534

They never intentionally set the beast free.

"However, when Akatsuki went after it, the beast was in the wild; the story behind how it came to be like this is still unknown."

This would be when Yagura was still the mizukage, and being controlled by Obito.