In the 18th-century idea, a man was expected above all to be pleasant and pleasing, and so it was better for a man to lie rather than say anything which might offend.
In the 18th-century social context, politeness was highly valued, leading to a preference for avoiding potentially offensive speech even if it meant lying.