Is "pharmacy" a business or a profession?

Yes. It's both.

A pharmacist practices a profession. The person who owns or manages a pharmacy is in business.