So my guess is that man started to deliberately trick the mind of others, i.e. to lie, long time after the human mind was capable of being tricked.
Religion is based on a mishmash of cognitive mechanisms. Some misfiring, others working under the influence of preexisting memes but all evolving gradually to make the human mind capable of the illusions we experience today. It doesn't mean we deliberately delusion ourselves, - some delusions we just don't mind. Literally speaking.