Can't lawyers be defenders in criminal proceedings?

A person who is being punished by criminal punishment or who is deprived or restricted of personal freedom according to law cannot act as a defender of criminal proceedings; A person who is dismissed from public office or whose practicing certificate as a lawyer or notary is revoked cannot act as a defender in criminal proceedings, except for the guardian or near relative of the criminal suspect or defendant.

legal ground

Article 33 of the Criminal Procedure Law: In addition to exercising the right of defense, a criminal suspect or defendant may entrust one or two persons as defenders. The following persons may be entrusted as defenders: (1) lawyers; (2) A person recommended by a people's organization or the unit to which the criminal suspect or defendant belongs; (3) Guardians, relatives and friends of criminal suspects and defendants. A person who has been sentenced to punishment according to law or deprived of or restricted personal freedom shall not act as a defender. A person who has been dismissed from public office or has his lawyer's or notary's practice certificate revoked may not act as a defender, except the guardian or near relative of the criminal suspect or defendant.