Sometimes we know the reason(s) we do things, and sometimes not.

"We like to flatter ourselves with the false claim to a more noble motive; but in fact we can never, even by the strictest examination, completely plumb the depths of the secret incentives of our actions." Immanuel Kant (1724-1804)