Although that makes it slightly confusing for you as a customer there are a number of valid reasons for that to happen that boil down to:
- The name in the window of the business / merchant may only be a brand.
- The brand is not the name of the legal entity operating the business.
The name you will see on your credit card (or debit card) transaction statement will most likely reflect the name of the bank account that received your payment and/or thus the name of the legal entity operating the business, (or possibly a third-party payment provider).
In a sole proprietor type of business that legal entity will likely be the name of the current owner.
(And the current owner of "Bob's Burger Bar" can be "Jane Doe" and "Bob" may have owned the business before or there was never a "Bob" in the first place and Jane simply decided on a good name for that burger joint.).
Otherwise the business is owned by a company, with a name different from the brand(s) they operate. That mismatch can be be intentional and by design, or the result of a re-branding sometime in the past; renaming a company and associated bank accounts is a lot more hassle than repainting the window sign and launching a new/additional brand to operate with.