Why mitochondria and chloroplasts have more than one surrounding membrane?

To have somewhere to make the proton gradient in. The H+ have stored electric potential energy inside the proton gradient, and that energy is used to synthesize ATP from ADP and Pi when they pass through ATPase to the other side of the proton gradient where they acquire a low energy state.