A "firm" is a business. People often use the word "firm" when talking about a business that provides professional services:
a law firm
an accounting firm
a design firm
The phrase "law firm" is especially common. People almost always call companies that provide legal services "law firms", not "law companies" or "law businesses".