Why does Bolivia have Two Capitals?

Bolivia has two different goverments, believe it or not, and that is why they have two capitals. According to their constition, Sucre is the legal capital and the other capital is La Paz.