I wonder what happened to koreas and why still split but under GDI

After the successful war on the soviet side against the allies how the hell did south korea even form as communism won

After the successful war on the soviet side against the allies how the hell did south korea even form as communism won