private attorney was one appointed to act for another in business or legal affairs (usually for pay); an attorney at law or public attorney was a qualified legal agent in the courts of Common Law who prepared the cases for a barrister, who pleaded them (the equivalent of a solicitor in Chancery). So much a term of contempt in England that it was abolished by the Judicature Act of 1873 and merged with solicitor.
"Johnson observed that 'he did not care to speak ill of any man behind his back, but he believed the gentleman was an attorney.' " [Boswell]
The double -t- is a mistaken 15c. attempt to restore a non-existent Latin original. Attorney general first recorded 1530s in sense of "legal officer of the state" (late 13c. in Anglo-Fr.), from Fr., hence the odd plural (subject first, adjective second).