If I did something stupid knowingly then it WOULD be stupidly but who in their right mind would purposely do something stupid...?
A person might tell lies because they are dysfunctional and thinking they must lie as a means of survival -as well as doing other socially unacceptable behaviors.