Ban Lawyers from serving in Congress

How can Lawyers be "Officers of the Courts" (Judicial Branch) Congressman (Legislative Branch) at the same time?

Lawyers are part of the Judiciary Branch of our government. Lawyers are connected to the only Branch of government which requires a certain degree and membership in a private organization (The Bar Association) to gain leadership in. So how can lawyers be part of the Judiciary Branch while serving in Congress?