Corporations don't do that out of loyalty. They do that because they make money off of advertising, or at least there is the perception they have that their advertising makes them money. They show people the product exists, and that [insert interesting person] uses it, and therefore get people to buy the product.
Corporations do not care about anything except money, and they rarely do anything out of the goodness of their heart. They do everything to make money. The only thing keeping them from lying, cheating and stealing is the law and basic human decency in the people that run the corporation and invest in it. Even that only goes so far and doesn't exist in a lot of place nowadays. Christ, the only reason there is a pink ribbon on products is not breast cancer concern; it's because corporations know that tapping into a cause will make people buy their product thinking they're being altruistic by buying that product. Any time you see anything like that, whether it's pink ribbons or images of veterans returning home saying they'll give every 10 cents to the veterans, it's not because they care. It's because people will lazily buy the product with that pink ribbon over the other, or that picture of vets over the other because it makes them think they're being altruistic and so they can feel good. In reality, it's just a racket on the backs of suffering people.
Anyway, the reason commercials are on television is because TV continues based, partially, on advertising dollars. Old Spice doesn't give two f*cks about the Big Bang Theory. People watch that show, and then they see the product and might be enticed to buy it, and if they aren't, they know it exists and will buy it more readily than the other brand. The more people watch the show, the more people to potentially buy the product their commercial is advertising. That's the business model. There's no altruism to it. They give the channel money to put in their commercial, and then the corporation makes money because people buy what was advertised. Modern television also makes money because cable and satellite providers pay to host their channel, and in turn the customers pay the cable and satellite providers for their service to watch the channel, to watch the show, and then get shown a series of commercials every 10 minutes. Back in the day, that did not used to be the case. All that existed was network TV (NBC, ABC, CBS, DuMont, etc) and the way they made money was based purely on the advertisment people paying them to put their product in a commercial slot on TV, and paying the channel to have something like Ed Sullivan say "we're brought to you by Altoids"; they were paying the show, and paying them to say that so they'd get that notice from the public so the public would go out and buy the product. It was free for the viewer, because they didn't have to pay to see it. Then Cable and Satellite came along, without commercials and supported monetarily by people paying for the service. In time, that went away and Cable and Satellite put in commercials and still made people pay for their services. Some channels are still commercial free and based purely on subscription, like HBO.
Corporations are not in the business of losing money. They don't do it out of the kindness of their hearts. They put on a commercial, people buy the product after seeing it, they make money. That's how all advertising works.