Batuu is an ancient place.
Set on the far edge of the galaxy,it's been a limited known outpost, distant from the machinations of the broader galaxy. During the days of pre-hyperspace travel, and it was a bustling hub of trade,but once the hyperspace lanes were established it was forgotten. It was largely left unbothered during the Clone Wars and the Galactic Civil War, too remote or unknown to matter. This made it the ideal place for smugglers and outlaws to find refuge amongst the planets forests or petrified rock formations.
Source: blastr.com