The Georgians did that to crush South Ossetia's efforts to split off from Georgia. Georgia had no right to do that. South Ossetia has as much right to declare itself no longer a part of Georgia as Georgia had to declare itself an independent state. That makes Georgia the aggressor.