Here's why:
* Confide: A verb meaning to tell someone a secret or private matter, trusting them not to repeat it.
* Confidence: A feeling of trust and belief in someone or something.
The act of confiding builds confidence in the person you confide in, and it also requires a certain level of confidence from the person sharing the secret.