The lawyer is an officer of the court and knows that a false swearing by them, if found out, could be grounds for severe penalty up to and including disbarment.
The attorney is a representative of the court and is aware that a deceitful oath by them, if discovered, could result in severe consequences up to and including expulsion from the bar.