In my experience, sometimes you have to lie because being sometimes situations arise where being honest hurts my immediate credibility which ultimately can hurt our relationship.
Lying to me is a tool that has to be used effectively. It's a fine line where if you do it too little, people think of you as a tool or you hurt yourself. If you do it a lot, nobody trusts you. It's a socially something that should be expected, but something for you to consider to yourself.