Attorney vs Lawyer
Many countries make clear distinctions between an attorney and a lawyer but the United States is not one of them.
The slight distinction between the terms lawyer and attorney has to do with licensing but the terms are often used interchangeably, with very little distinction between the two in the U.S.
When someone has successfully completed law school in the United States they are considered a lawyer because they are learned and trained in the law but they may not actually practice law. An attorney is a lawyer who has passed a bar exam and is licensed to practice law. Technically, an attorney is always also a lawyer whereas a lawyer is not necessarily an attorney but in the U.S., many people use the terms interchangeably.
An attorney has to have passed the bar exam in the jurisdiction where they want to practice law and provide legal representation to those who need it. While it is not necessary, there are many attorneys who have passed more than one bar exam and can practice law in more than one state.