I think it would be more correct to say: They think it is the right thing to do.
I do not share their opinion. I am a buyer too and I do not look more favourably upon them because of this.
(I am not talking about Fox news here; don't receive it and have barely watched it, and can't form an opinion over that.)
The framework of much of our political debate seems to assume a particular political direction.
For example, the terminology "progressive" indicates that we're only making progress when we engage in these policies, particularly redistributive tax policies.
Another example is the common usage of the term "special interests". It seems to me this is commonly used as a synonym for "corporate interests". But more realistically, everything is a special interest. That includes the education establishment and the NEA, unions, and environmentalists. Yes, businesses are a constituency of special interests, but so are those others that support the other side of the spectrum. It can't objectively be said that one side is the common interest of the people, and the others are special; they all hold equal roles in the debate.
The 'best financial interest of shareholders' for Apple is long-term, and they believe the good will generated by doing the right thing will make the market look more favourably upon them. I know I do.
It's a lack of a short-sighted, myopic view that's gotten Apple where it is today. Putting their advertising dollars into ads on another channel (or websites, etc.) instead of Fox News isn't going to cost them a significant amount of sales in the long term, but it is going to hurt Fox in the short term (well, the boycott will).
Meanwhile, Apple's not worried about their profits for the next year; they've got so much cash in the bank they don't even need their employees to show up to work for the company to outlive any of us. Their iPad ads will go elsewhere, and will earn them sales, and the shareholders won't suffer at all.