I lied to them.
Why did you  lie to them?
I lied to them because I was afraid they would nag at me.
Generally speaking, lying is never the correct answer to a problem. It's better to simply be honest and accept the consequences. Doing that makes people trust you and lets you work through the problem.
I'm not that stupid, I don't lie all the time. I just have layers I hide from people.
It is good that you don't lie all the time but telling lies even small ones but damage the trust people have on you. You might lose people who don't want to be around people who lie.