If the secret/lie comes out later, then the consequences are often far worse than they would have been if you had been honest.
If you have lied or deliberately misled, everything you have ever said might be up for questioning.