Why did Princess Celestia imprison her sister Princess Luna if she had the Elements of Harmony to restore her?

the elements were destroyed remember! this means that she had to recreate them using twilight sparkle an all her friends its the friendship that is the elements also its kindof for entertainment purposes too!